-
Notifications
You must be signed in to change notification settings - Fork 585
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
Module not found #5135
Comments
I can confirm that I have the same issue. It is there already for quite a while and resurfaces now and then. |
The bug was introduced about 2 years ago I believe. PLEASE DO NOT CLOSE THIS ISSUE AS HAPPENDS ALL THE TIME. But how to do a fix for yourself @DrillableBit
what works in my next.js typescript project is this: "@aws-sdk/client-s3": "3.3.0", |
Hi @DrillableBit, @davincios, I will investigate this issue and I will get back to you. Thanks! |
I would really appreciate it, and am happy to provide any information possible. There is a lot of libraries that are depending on these two packages and all have to encounter the build error warnings or security code smells of this issue (when using the 3.3 or earlier versions to remove the build error warning). It probably affects thousands of people. I am also happy to provide you an example repository with the issue to replicate the error or jump with you on a call. |
This unfortunately is not a solution for me because it doesn't pass our code security scanner. So I probably will have to create a custom lib as a hot fix before it is fixed by Amazon. As this issue is there already for 5 months. So if you find any additional information as well then that would be super helpful @yenfryherrerafeliz |
Hello, i have the same issue, this is weird. I only want to import @aws-sdk/client-s3 and it's just working fine. However i got error when building next app version 13. here the output:
In dev mode, i can hide the message by configure the next config as below:
Everything works fine, but the message is annoying and can't trace the error. I would'nt install aws-sdk since the bundle really big. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
Start a fresh next.js application ( create-next-app myApp) - use app router.
npm install @aws-sdk/client-s3 @aws-sdk/s3-request-presigner
import into a file (don't use):
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";
Expected Behavior
Module not found: Can't resolve '@aws-sdk/signature-v4-crt' in 'C:\Users\aapli\Desktop\Programming\help-s3\node_modules@aws-sdk\signature-v4-multi-region\dist-cjs'
Import trace for requested module:
./node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/SignatureV4MultiRegion.js
./node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
./node_modules/@aws-sdk/s3-request-presigner/dist-cjs/presigner.js
./node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js
./src/_lib/afile.jsx
./src/app/page.tsx
in the console
Current Behavior
Module not found: Can't resolve '@aws-sdk/signature-v4-crt' in 'C:\Users\aapli\Desktop\Programming\help-s3\node_modules@aws-sdk\signature-v4-multi-region\dist-cjs'
Import trace for requested module:
./node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/SignatureV4MultiRegion.js
./node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
./node_modules/@aws-sdk/s3-request-presigner/dist-cjs/presigner.js
./node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js
./src/_lib/afile.jsx
./src/app/page.tsx
Reproduction Steps
npx create-next-app
typescript, tailwind, approuter
npm install @aws-sdk/client-s3 @aws-sdk/s3-request-presigner
import into a file (don't use):
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";
Possible Solution
No response
Additional Information/Context
No response
SDK version used
3.395.0
Environment details (OS name and version, etc.)
windows
The text was updated successfully, but these errors were encountered: