-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Dynamic imports don't work in nodejs #9580
Comments
It seems that this is a known issue: #9430
|
Correct, this is blocked by #9430. For now you'll need to transpile it (using Babel, TypeScript, or something else like it) |
It's not clear that there is a method that works... an alternative workaround is perhaps to use |
dynamic import has been implemented in #10620, released in 26.5.3 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
Cannot dynamically import module in jest tests.
To Reproduce
Steps to reproduce the behavior:
Throws:
Expected behavior
Expected the dynamic import to work.
envinfo
The text was updated successfully, but these errors were encountered: