Warning - Can't resolve 'aws-crt', maybe related to SecretsManagerClient
See original GitHub issueDescribe the bug
At least with versions 3.35 and 3.36 I get the following warning when compiling using webpack:
WARNING in ../node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js 3:96-114
Module not found: Error: Can't resolve 'aws-crt' in '/Users/mwawrusch/Dev/roji/aws-backend/aws-backend-wallet/lambdas/node_modules/@aws-sdk/util-user-agent-node/dist-es'
@ ../node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js 5:0-52 16:23-37
@ ../node_modules/@aws-sdk/client-secrets-manager/dist-es/runtimeConfig.js
@ ../node_modules/@aws-sdk/client-secrets-manager/dist-es/SecretsManagerClient.js 10:0-73 15:24-42
@ ../node_modules/@aws-sdk/client-secrets-manager/dist-es/index.js 1:0-39 1:0-39
@ ../aurorav2/aurora-helper.ts 1:0-94 4:33-53 8:65-86
@ ./src/handler.ts 10:0-73 28:29-54
Your environment
SDK version number
"@aws-sdk/client-cognito-identity-provider": "3.36.0",
"@aws-sdk/client-cognito-identity": "3.36.0",
"@aws-sdk/client-ssm": "3.36.0",
"@aws-sdk/client-sns": "3.36.0",
"@aws-sdk/client-sqs": "3.36.0",
"@aws-sdk/client-rds-data": "3.36.0",
"@aws-sdk/client-secrets-manager": "3.36.0",
Is the issue in the browser/Node.js/ReactNative?
Node.js
Details of the browser/Node.js/ReactNative version
Paste output of npx envinfo --browsers
or node -v
or react-native -v
v14.15.0
Steps to reproduce
Please share code or minimal repo, and steps to reproduce the behavior.
Observed behavior
A clear and concise description of what happens.
Expected behavior
A clear and concise description of what you were expecting to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Compilation fails when aws-crt is not included · Issue #3640
Describe the bug I depend on @aws-sdk/client-quicksight@3.99.0 and I am using the ListUsers and DeleteUser command.
Read more >Resolve Secrets Manager secret access errors after ... - AWS
I attempted to retrieve or access an AWS Secrets Manager secret, and received an error similar to one of the following: "You can't...
Read more >Using credentials - AWS SDK for Java 2.x
Learn how to work with credentials using the AWS SDK for Java 2.x. ... This can potentially be dangerous, so proceed with caution....
Read more >Secrets Manager Client - AWS SDK for JavaScript v3
Initiate command with input parameters. Call send operation on client with command object as input. If you are using a custom http handler,...
Read more >Troubleshooting AWS Secrets Manager
Use the information here to help you diagnose and fix issues that you might encounter when you're working with Secrets Manager. For issues...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
List it as external in your webpack config
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.