-
Notifications
You must be signed in to change notification settings - Fork 17
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
Cannot find module '@aws-cdk/cx-api' #59
Comments
❯ node -e 'console.log(require("aws-cdk"))' ========================================================= ❯ npm install -g aws-cdk-local aws-cdk changed 4 packages, and audited 5 packages in 2s found 0 vulnerabilities ========================================================= |
I then install the required package: finally I stuck in: ========================================================= ❯ cdklocal --version Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/local/lib/node_modules/chalk/source/index.js from /usr/local/lib/node_modules/aws-cdk/lib/logging.js not supported. ========================================================= |
Same here. When I try cdklocal with aws-cdk@2.14.0, I get the same error. With aws-cdk@2.13.0, it's fine. It broke our CI/CD pipeline in this morning. |
me too. I tryed aws-cdk downgrade. It’s success and no errors. $ npm install -g aws-cdk@2.13.0 cdk --version
2.13.0 (build b0b744d)
cdklocal --version
2.13.0 (build b0b744d) @adnanaylan Thanks for your comment. |
Same here. |
cdk version 2.14.0 is broken in the same way for me. Version 2.13.0 works, though. |
Same with cdk version 2.15.0 |
Thanks for reporting @ethanalef @adnanaylan @makies @vertti @mikelane @liamor . We have now released a new version |
Assuming this is fixed with the latest |
Can confirm aws-cdk-local@2.14.0 is working with aws-cdk@2.15.0 |
I tried the cmd: cdklocal --version, it shows the error:
=========================================================
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module '@aws-cdk/cx-api'
Require stack:
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/usr/local/lib/node_modules/aws-cdk/lib/api/aws-auth/sdk-provider.js:6:15)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/local/lib/node_modules/aws-cdk/lib/api/aws-auth/sdk-provider.js',
'/usr/local/lib/node_modules/aws-cdk-local/bin/cdklocal'
]
}
=========================================================
I tried reinstall via npm but no luck.
The text was updated successfully, but these errors were encountered: