Missing dependency @aws-sdk/signature-v4-crt after updating to client-s3 3.33.0 · Issue #2806 · aws/aws-sdk-js-v3 (original) (raw)
Describe the bug
After updating to @aws-sdk/client-s3
3.33.0 from 3.32.0 I get the following error when building lambdas using NodejsFunction
as part of a CDK project:
$ cdk deploy --all
Bundling asset Stack/function/Code/Stage...
> node_modules/@aws-sdk/middleware-sdk-s3/dist/cjs/S3SignatureV4.js: error: Could not resolve "@aws-sdk/signature-v4-crt" (mark it as external to exclude it from the bundle)
38 │ ...erV4 = (await Promise.resolve().then(() => __importStar(require("@aws-sdk/signature-v4-crt")))).CrtSignerV4;
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error
Your environment
SDK version number
@aws-sdk/client-s3@3.33.0
Is the issue in the browser/Node.js/ReactNative?
Node.js
Details of the browser/Node.js/ReactNative version
v14.17.5
Additional context
Presumably a regression from #2796.
Reverting to 3.32.0 fixes the issue.