Cannot Find Module Error During Auth0 Import With AWS Custom DB

Overview

This article explains why an error occurs when attempting to use a Custom Database script that interacts with Amazon Web Services (AWS) for importing users into Auth0. The process fails, and the following error message appears:

"error": "Script generated an unhandled synchronous exception."

Cannot find module 'aws-sdk@{version}'

Applies To

  • Database Connection

Cause

A version is applied to the node module import.

Solution

Remove the version from the import statement and let Auth0 import the latest version of the module.

Recommended content

No recommended content found...