aws-samples / aws-serverless-webapp-workshop

Code and walkthrough labs to set up serverless applications for Wild Rydes workshops
https://serverlessland.com
Other
56 stars 144 forks source link

Testing Doesn't work #40

Open pjseilhamerpg opened 1 year ago

pjseilhamerpg commented 1 year ago

I have tried Node.js 18x - 12x and nothing works.

Response { "errorType": "ReferenceError", "errorMessage": "require is not defined in ES module scope, you can use import instead", "trace": [ "ReferenceError: require is not defined in ES module scope, you can use import instead", " at file:///var/task/index.mjs:4:25", " at ModuleJob.run (node:internal/modules/esm/module_job:194:25)" ] }