Skip to content

esbuild cannot run locally #1

Description

@andyRokit

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).

Activity

  1. nenigaikgedon commented on Nov 10, 2022

    @nenigaikgedon

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions