-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Claudia with Node 14 and ES6 #237
Comments
Claudia needs to provide support for ES Modules in order to provide top level awaits. Without this functionality a different set of tools will be required. Is there any active support for this or should I just move to a different toolkit? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since Lambda now supports Node14, it makes sense to support ES6 modules? Maybe Im doing something crazy here, but I just installed latest Claudia.js on my macOS M1, it seems to be homebrewed.
Expected behaviour:
Be able to create / use Claudia with ES6 modules/development
What actually happens:
When running "claudia create --region eu-north-1 --handler index.handler", I get errors about not using ES5 structure
Console:
Steps to install the project:
In package.js, use
"type": "module"
to enable ES6 compabilitySteps to reproduce the problem:
Create an ES6 project, with "import" instead of "require", with "type": "module" in package.js. Im getting those errors above..
Thanks!
The text was updated successfully, but these errors were encountered: