Error: Cannot find module '@aws-sdk/util-endpoints'
See original GitHub issueyarn create keystone-app
fails.
I was just trying to start the tutorial, and I can’t get past the yarn create keystone-app
step.
This is the failure message that I get:
node:internal/modules/cjs/loader:998
throw err;
^
Error: Cannot find module '@aws-sdk/util-endpoints'
Require stack:
- /home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js
- /home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js
- /home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js
- /home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/S3Client.js
- /home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/S3.js
- /home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/index.js
- /home/rheajt/projects/apps/testing-space/testing/node_modules/@keystone-6/core/dist/initConfig-a2b4b053.cjs.dev.js
- /home/rheajt/projects/apps/testing-space/testing/node_modules/@keystone-6/core/scripts/cli/dist/keystone-6-core-scripts-cli.cjs.dev.js
- /home/rheajt/projects/apps/testing-space/testing/node_modules/@keystone-6/core/scripts/dist/keystone-6-core-scripts.cjs.dev.js
- /home/rheajt/projects/apps/testing-space/testing/node_modules/@keystone-6/core/scripts/dist/keystone-6-core-scripts.cjs.js
- /home/rheajt/projects/apps/testing-space/testing/node_modules/@keystone-6/core/bin/cli.js
at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
at Module._load (node:internal/modules/cjs/loader:841:27)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js:4:26)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1061:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js',
'/home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js',
'/home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js',
'/home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/S3Client.js',
'/home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/S3.js',
'/home/rheajt/projects/apps/testing-space/testing/node_modules/@aws-sdk/client-s3/dist-cjs/index.js',
'/home/rheajt/projects/apps/testing-space/testing/node_modules/@keystone-6/core/dist/initConfig-a2b4b053.cjs.dev.js',
'/home/rheajt/projects/apps/testing-space/testing/node_modules/@keystone-6/core/scripts/cli/dist/keystone-6-core-scripts-cli.cjs.dev.js',
'/home/rheajt/projects/apps/testing-space/testing/node_modules/@keystone-6/core/scripts/dist/keystone-6-core-scripts.cjs.dev.js',
'/home/rheajt/projects/apps/testing-space/testing/node_modules/@keystone-6/core/scripts/dist/keystone-6-core-scripts.cjs.js',
'/home/rheajt/projects/apps/testing-space/testing/node_modules/@keystone-6/core/bin/cli.js'
]
}
OS: Ubuntu 22.02 Node: I tried both 16.18.0 and 18.11.0
Issue Analytics
- State:
- Created a year ago
- Reactions:6
- Comments:6 (2 by maintainers)
Top Results From Across the Web
ERROR in @aws-sdk/util-endpoints · Issue #4067
AWS SDK for JavaScript maintainer here. If you're getting Cannot find module '@aws-sdk/util-endpoints' error, it's fixed in v3.193.0
Read more >Error: Cannot find module '@aws-sdk/client-sns'
I got it resolved and this was an issue with the node version I was using. I updated my node version to 12.X...
Read more >Cannot find module '@aws-sdk/util-endpoints - Bugs
I've not changed my environment in weeks yet this error has just now started showing up. Can no longer upload images to AWS...
Read more >@aws-sdk/util-endpoints | AWS SDK for JavaScript v3
Module @aws-sdk/util-endpoints. @aws-sdk/util-endpoints ... Defined in packages/util-endpoints/src/types/shared.ts:9. DeprecatedObject ... error: Expression ...
Read more >aws-sdk/util-utf8-browser
@aws-sdk/util-utf8-browser. TypeScript icon, indicating that this package has built-in type declarations. 3.188.0 • Public • Published 2 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Verified that it’s fixed https://github.com/aws/aws-sdk-js-v3/issues/4053#issuecomment-1286137018
Thanks @trivikr!