aws-sdk-js-v3
aws-sdk-js-v3 copied to clipboard
Cannot find module '@aws-sdk/middleware-endpoint' on @aws-sdk/client-cognito-identity-provider dependency
Checkboxes for prior research
- [X] I've gone through Developer Guide and API reference
- [X] I've checked AWS Forums and StackOverflow.
- [X] I've searched for previous similar issues and didn't find any solution.
Describe the bug
Missing dependency make app crashing
SDK version number
"@aws-sdk/client-cognito-identity-provider": "^3.410.0"
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
18.12.1
Reproduction Steps
Install
"@aws-sdk/client-cognito-identity-provider": "^3.410.0",
"@aws-sdk/client-s3": "^3.410.0",
"@aws-sdk/client-ses": "^3.410.0",
"@aws-sdk/cloudfront-signer": "^3.410.0",
"@aws-sdk/lib-storage": "^3.410.0",
"@aws-sdk/s3-request-presigner": "^3.410.0",
And try to run your app
Observed Behavior
Expected Behavior
It should work normally
Possible Solution
Missing dependency
Additional Information/Context
No response
Hi @clement-faure, thanks for opening this issue however I was not able to encounter any errors when installing any of the dependencies you mentioned. Can you please provide code about how you are using it in your app?
Hi @clement-faure, thanks for opening this issue however I was not able to encounter any errors when installing any of the dependencies you mentioned. Can you please provide code about how you are using it in your app?
Thank you for your quick response. Still having the issue with the lastest version of @aws-sdk modules.
I have @aws-amplify/auth
and @aws-amplify/core
dependencies, also using @aws-sdk/credential-provider-node dependency :
-
@aws-sdk/[email protected]
(for @aws-sdk/[email protected]) -
@aws-sdk/[email protected]
(for @aws-amplify/[email protected])
All was working fine with
-
@aws-sdk/[email protected]
(for @aws-sdk/[email protected]) -
@aws-sdk/[email protected]
(for @aws-amplify/[email protected])
Any clue on this ? I've gone through yarn.lock but all seems fine.
I'm also having issues after updating AWS SDK:
Error: Cannot find module '@aws-sdk/region-config-resolver'
Require stack:
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue (/mnt/ramdisk/repo/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
at Function.Module._resolveFilename (/mnt/ramdisk/repo/node_modules/tsconfig-paths/src/register.ts:115:36)
at Function.Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object.<anonymous> (/mnt/ramdisk/repo/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js:210:34)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Object.require.extensions.<computed> [as .js] (/mnt/ramdisk/repo/node_modules/ts-node/src/index.ts:1608:43)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Function.Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object.<anonymous> (/mnt/ramdisk/repo/node_modules/@aws-sdk/token-providers/dist-cjs/index.js:4:22)
at Module._compile (node:internal/modules/cjs/loader:1256:14) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/mnt/ramdisk/repo/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/token-providers/dist-cjs/index.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/client-sts/dist-cjs/index.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/client-cloudfront/dist-cjs/runtimeConfig.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/client-cloudfront/dist-cjs/CloudFrontClient.js',
'/mnt/ramdisk/repo/node_modules/@aws-sdk/client-cloudfront/dist-cjs/index.js',
...
]