Skip to content
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

esbuild cannot run locally #1

Open
andyRokit opened this issue Jul 17, 2022 · 1 comment
Open

esbuild cannot run locally #1

andyRokit opened this issue Jul 17, 2022 · 1 comment

Comments

@andyRokit
Copy link

When I run cdk deploy (or cdk synth) I receive the following error:

Bundling asset AwsMicroservicesStack/Microservices/productLambdaFunction/Code/Stage...
esbuild cannot run locally. Switching to Docker bundling.
✘ [ERROR] Could not resolve "@aws-sdk/client-dynamodb"

See full console output

This may be related to https://github.com/aws/aws-cdk/pull/14914/files (which apparently fixed the issue for CDK v1).

@nenigaikgedon
Copy link

In my case this was resolved by installation of the missing packages, e.g.:
npm install @aws-sdk/client-dynamodb

Another issue was usage of NodeJS v19 that's currently unsupported by the CDK, but its downgrade to LTS v18 resolved that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants