-
Notifications
You must be signed in to change notification settings - Fork 451
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
[Bug]: ESM syntax is not allowed in a CommonJS #4249
Labels
Comments
And further set the package.json "type": "module". This makes "verbatimModuleSyntax":true a requirement. Otherwise node would complain on "import { some } from './'" statements without a trailing ".js" extension.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
^29.1.1
Steps to reproduce
Install:
Setup your configuration file:
Try to run a test that uses ESM modules and you'll get this error:
Expected behavior
I would expect the modules to load correctly.
Actual behavior
The modules do not load at all.
Debug log
Too long
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: