repo: https://github.com/LucaPinheiro/2753-serverless-node
espero que vocês consigam me ajudar!! Não sei porque está acontecendo. Estou totalmente certinho com conta na aws, serverless e tudo. Quando faço o post to tomando esse erro do js
POST /api/results (λ: sendResponse)
(node:34726) ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time
(Use node --trace-warnings ...
to show where the warning was created)
✖ Uncaught exception
Environment: linux, node 16.18.1, framework 3.24.1 (local) 3.38.0v (global), plugin 6.2.2, SDK 4.3.2
Credentials: Serverless Dashboard, "default" provider (https://app.serverless.com/lucapinheiro/apps/aws-node-http-api-project/aws-node-http-api-project/dev/us-east-1/providers)
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues
Error: Error [ERR_REQUIRE_ESM]: require() of ES Module /home/luca/Development/Alura/Programacao/Node/AWSLambda/2753-serverless-node/node_modules/ts-node/esm.mjs not supported. Instead change the require of /home/luca/Development/Alura/Programacao/Node/AWSLambda/2753-serverless-node/node_modules/ts-node/esm.mjs to a dynamic import() which is available in all CommonJS modules.
1 deprecation found: run 'serverless doctor' for more details