-
Notifications
You must be signed in to change notification settings - Fork 587
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 get final name for export 'toBase64' @smithy/[email protected] in NextJS #6686
Comments
Hey @MinhOmega , When you see the error locally but not in the dev environment, it's typically due to differences in module resolution and environment configurations. Could you please try to clear your local cache and try again?
Let us know if you are still facing this issue. Thanks! |
Hi @zshzbh ,
and in Vercel:
|
I'm experiencing this same issue. I've also had to downgrade to 3.485.0 in order for my application to build |
I'm experiencing same issue, hope to have a fix soon, thanks |
Hi @MinhOmega @zshzbh , |
Hi @trung1051996 , Currently, we still need the maintainer of this library to find the root cause and fix it. As a temporary solution, I think we can downgrade to version 3.485.0, which is working fine on my side. You can try it on your side as well. Thank you! |
Using ▲ Next.js 14.2.18 with
and I don't see the error. I don't think this error comes from AWS SDK as it has a webpack error before it.
The error above could cause the error
This is the log after running
|
This is my minimal code reproduction GH repo - https://github.com/zshzbh/my-upload-app The error is possibly related to Turbopack which doesn't use dist-cjs variant, as per error log. I will dive deep into this issue and discuss this with the team. |
Hey @MinhOmega , @trung1051996, @inmanenz @ringge The provided minimal repro that MinhOmega posted has too many dependencies. I created a basic application with JavaScript using Next.js 14.2.18 without any config, only with the necessary config The application can be viewed on GitHub at https://github.com/zshzbh/my-upload-app Since I don't have this issue on my repro, can you use my repro and remove dependencies from your minimal reproduction to check what might be adding to the repro project I have? |
Hi @zshzbh I’ve tried everything, but it still doesn’t work. Is there any other way I can approach this issue? |
Adding this to next.config.mjs worked for us
|
@Yuripetusko Bro You saved us, thank you so much. |
Checkboxes for prior research
Describe the bug
I am facing an issue when integrating media uploads to S3 using presigned URLs. I have installed
@aws-sdk/[email protected]
and@aws-sdk/[email protected]
, and I am using Next.js version 14.2.3. It works fine in development mode, but when I build the application, both locally and on Vercel, it throws the following error:To resolve this, I tried downgrading to version 3.485.0, and it is now working fine.
Regression Issue
SDK version number
@aws-sdk/[email protected], @aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v20.9.0
Reproduction Steps
I have used server action to create the presigned URL then put the image with that response, here is sample code:
media.ts:
in the upload in client side:
Observed Behavior
Expected Behavior
Build the project success without any error same as version 3.485.0
Possible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: