-
Notifications
You must be signed in to change notification settings - Fork 80
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
Can't resolve @aws-sdk/signature-v4-crt
and aws-crt
#153
Comments
+1 |
After running
|
+1 |
getting same error any solution or fix for it ? |
+1 |
Thanks for the bug report, I'll start investigating this. One quick question: is it preventing the library from working? |
@ryanto no its not preventing it from working, it works fine with these errors. |
Ok I just published version |
Still appearing in
|
Issue stems from the aws sdk and webpack aws/aws-sdk-js-v3#4126 |
To avoid the warning, its possible to update the webpack config for nextjs. Update next.config.js: /** @type {import('next').NextConfig} */
const config = {
// …
webpack: (config, { webpack, isServer, nextRuntime }) => {
// Avoid AWS SDK Node.js require issue
if (isServer && nextRuntime === "nodejs")
config.plugins.push(
new webpack.IgnorePlugin({ resourceRegExp: /^(aws-crt|@aws-sdk\/signature-v4-crt)$/ })
);
return config;
},
// …
};
module.exports = config; credit to aws-amplify/amplify-js#11030 (comment) |
@martinmiglio awesome find! |
Hey,
first of all, thanks for the library. It works fine so far, the images get uploaded but I always get the following errors. Have you come across this issue already?
Versions
Node: 18.15.0
Next: 13.4.7
This package: 0.3.0
If you need further information, just let me know! Thank you!
The text was updated successfully, but these errors were encountered: