-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Failed to init a new Ts.ED project with @tsed/cli v5.2.1 #392
Comments
1 similar comment
🎉 This issue has been resolved in version 5.2.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Hello @Romakita,
/Users/vincent/.nvm/versions/node/v20.16.0/lib
/Users/vincent/.nvm/versions/node/v22.4.1/lib
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/vincent/.nvm/versions/node/v22.4.1/lib/node_modules/@tsed/cli/node_modules/update-notifier/index.js from /Users/vincent/.nvm/versions/node/v22.4.1/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/cjs/CliCore.js not supported. |
🎉 This issue has been resolved in version 5.2.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Yes i forgot to fix the tsconfig of @tsed/cli-core also. |
Thank you @Romakita. |
Information
I tried to initialize a new Ts.ED project with the @tsed/cli package and it failed
what I've tried
~/workspace/tmp/queryoptions > npx @tsed/cli init . Need to install the following packages:
@tsed/[email protected]
Ok to proceed? (y) y
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/vincent/.npm/_npx/8fd6f229e097057e/node_modules/update-notifier/index.js from /Users/vincent/.npm/_npx/8fd6f229e097057e/node_modules/@tsed/cli-core/lib/cjs/CliCore.js not supported.
Instead change the require of index.js in /Users/vincent/.npm/_npx/8fd6f229e097057e/node_modules/@tsed/cli-core/lib/cjs/CliCore.js to a dynamic import() which is available in all CommonJS modules.
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at /Users/vincent/.npm/_npx/8fd6f229e097057e/node_modules/@tsed/cli-core/lib/cjs/CliCore.js:61:101
at async Cli.updateNotifier (/Users/vincent/.npm/_npx/8fd6f229e097057e/node_modules/@tsed/cli-core/lib/cjs/CliCore.js:61:45)
at async Cli.bootstrap (/Users/vincent/.npm/_npx/8fd6f229e097057e/node_modules/@tsed/cli/lib/cjs/Cli.js:61:9) {
code: 'ERR_REQUIRE_ESM'
}
~/workspace/tmp/queryoptions > npm install -g @tsed/cli
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
added 389 packages in 3s
75 packages are looking for funding
run
npm fund
for details~/workspace/tmp/queryoptions > tsed init .
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/vincent/.nvm/versions/node/v22.4.1/lib/node_modules/@tsed/cli/node_modules/update-notifier/index.js from /Users/vincent/.nvm/versions/node/v22.4.1/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/cjs/CliCore.js not supported.
Instead change the require of index.js in /Users/vincent/.nvm/versions/node/v22.4.1/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/cjs/CliCore.js to a dynamic import() which is available in all CommonJS modules.
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at /Users/vincent/.nvm/versions/node/v22.4.1/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/cjs/CliCore.js:61:101
at async Cli.updateNotifier (/Users/vincent/.nvm/versions/node/v22.4.1/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/cjs/CliCore.js:61:45)
at async Cli.bootstrap (/Users/vincent/.nvm/versions/node/v22.4.1/lib/node_modules/@tsed/cli/lib/cjs/Cli.js:61:9) {
code: 'ERR_REQUIRE_ESM'
}
Acceptance criteria
The text was updated successfully, but these errors were encountered: