Skip to content
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

Error: Cannot find module '@aws-sdk/util-endpoints' #8023

Closed
rheajt opened this issue Oct 20, 2022 · 6 comments
Closed

Error: Cannot find module '@aws-sdk/util-endpoints' #8023

rheajt opened this issue Oct 20, 2022 · 6 comments
Assignees
Labels
dependencies Related to our dependencies

Comments

@rheajt
Copy link

rheajt commented Oct 20, 2022

yarn 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

@TheRealFlyingCoder
Copy link

TheRealFlyingCoder commented Oct 20, 2022

I was just about to raise this bug ^

Manually installing npm install @aws-sdk/util-endpoints will fix the issue temporarily

@dcousens dcousens self-assigned this Oct 20, 2022
@dcousens
Copy link
Member

dcousens commented Oct 20, 2022

You should see this fixed upstream soon, if for some reason there is a delay, I'll re-open the issue.

edit: actually, I'll leave the issue open and pinned until it's fixed upstream

@dcousens dcousens added the dependencies Related to our dependencies label Oct 20, 2022
@dcousens dcousens reopened this Oct 20, 2022
@dcousens dcousens pinned this issue Oct 20, 2022
@dcousens dcousens changed the title Error: Cannot find module '@aws-sdk/util-endpoints' during basic project setup Error: Cannot find module '@aws-sdk/util-endpoints' Oct 20, 2022
@jsmith213561
Copy link

Still experiencing this issue as mentioned in 734.

@TheRealFlyingCoder
Copy link

New release 3.193 upstream just went out. Should fix this issue now @dcousens

@trivikr
Copy link

trivikr commented Oct 20, 2022

Should fix this issue now

Verified that it's fixed aws/aws-sdk-js-v3#4053 (comment)

@dcousens
Copy link
Member

Thanks @trivikr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Related to our dependencies
Projects
None yet
Development

No branches or pull requests

5 participants