Cannot use import statement outside a module in serverless node application

The error message “Cannot use import statement outside a module” occurs when you try to use an import statement in a Node.js application that is not configured to handle ECMAScript modules (ES modules) syntax. To resolve this issue in a serverless Node.js application, you can follow these steps: Update all your import statements to use

Read more