Execution Error: Cannot find module 'uuid/v4 in typescript ApiLambdaCrudDynamoDBExample #369
Labels
bug
This issue is a bug.
duplicate
This issue is a duplicate.
effort/small
Small work item – less than a day of effort
language/typescript
Related to Typescript examples
p1
🐛 Bug Report
Error executing the create function in typescript/api-cors-lambda-crud-dynamodb project
What is the problem?
The RestApiCrudLambdaDynamoDB-createItem lambda function cannot be executed because cannot find module 'uuid/v4'.
The project deploys an API gateway integrated with lambda functions that execute simple CRUD on a DynamoDB table.
Reproduction Steps
Simply install, build, deploy, and test the function with API gateway:
When it's deployed, in the API gateway, test the POST method on /items/ resource. You can set body = {}
Verbose Log
From the lambda logs:
Environment
Other information
It seems a known problem
But I could not make it work.
I changed the require statement as mentioned in SO, but same result:
Probably it will work uploading manually the module, but I'd like to solve it with cdk.
The text was updated successfully, but these errors were encountered: