cli: TS Error when run generation

Describe the bug

TypeScript error when run generation from template/

How to Reproduce

  1. Install node (tested with 16 and 18)
  2. Install latest cli
  3. Checkout asyncapi/java-spring-template
  4. Run command asyncapi generate fromTemplate tests/mocks/mqtt.yml @asyncapi/java-spring-template -o spring-output-test
  5. Error:
error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'es2022', 'esnext', 'node12', 'nodenext'.

Additional details: OS - Windows 11

asyncapi --version
@asyncapi/cli/0.40.8 win32-x64 node-v16.20.0

Expected behavior

No error when run generation from template

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 22 (21 by maintainers)

Most upvoted comments

@derberg I have a small update here. For the version @asyncapi/cli/0.54.4 win32-x64 node-v18.17.1. CLI-Generator will work IF:

  1. CMD is located in system volume (drive C for most Windows systems)
  2. CMD is run with Administrator privileges.

image In other cases I receive the same error โ€œerror TS6046: โ€ฆโ€

@Tenischev 0.51 that was just released should fix it ๐Ÿคž๐Ÿผ

@Souvikns I think you have access to windows, can you help with this issue ๐Ÿ™