dynobase-icon
Dynobase

Error: cannot find module 'dynamodb-doc'

Rafal Wilinski

Answered by Rafal Wilinski

What's Causing This Error

This error occurs when an AWS service such as the Lambda function cannot locate the module dynamodb-doc as a third-party dependency.

Solution - Here's How To Resolve It

To resolve the error, manually add the module in the package.json as shown below.

"dependencies": { 
  "dynamodb-doc": "^1.0.0" 
}

Additionally, you can install the dependency using the command npm i dynamodb-doc, and it will automatically add the module to the package.json as a third-party dependency.

Spend less time in the AWS console, use Dynobase.

Start your 7-day free trial today

Product Features

Download
/
Changelog
/
Pricing
/
Member Portal
/
Privacy
/
EULA
/
Twitter
© 2024 Dynobase
+
Login to the AWS Console less.
Try Dynobase to accelerate your DynamoDB workflow. Start your 7-day free trial today.