Closed trivikr closed 5 months ago
The error is likely with yarn workspaces setup. I was not able to reproduce it with CDK Getting Started App in https://github.com/trivikr/aws-cdk-no-methods-error
As of now, we're using esbuild separately for bundling in https://github.com/aws-samples/aws-sdk-js-notes-app/pull/40
Issue
Fixes: https://github.com/aws-samples/aws-sdk-js-notes-app/issues/5
Description
Uses @aws-cdk/aws-lambda-nodejs for deploying lambda functions
Testing
Local testing fails with the following error:
Error
```console Bundling asset aws-sdk-js-notes-app/listNotes/handler/Code/Stage... Usage Error: Couldn't find a script named "esbuild". $ yarn run [--inspect] [--inspect-brk]By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.