You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require("./esm-loader.mjs!");// this loader is esm module
All works fine with Node.js
5. run yarn jest test/EsmLoader.basictest.js
it fails with segment fault here Note: just running eval('import("some-module")') in jest test file works
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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Version
27.3.1
Steps to reproduce
Tested with Node.js 16
yarn
node test/run-esm-loader.js
it will printok!
this script has a small webpack build with one module + esm written loaderin
esm-loader-app.js
All works fine with Node.js
5. run
yarn jest test/EsmLoader.basictest.js
it fails with segment fault here
Note: just running
eval('import("some-module")')
in jest test file worksExpected behavior
Expected test finish successfully
Actual behavior
jest fall in segment fault..
Additional context
Looks like bug appears only when running in jest
Environment
full list of affected envs in webpack ci/cd
The text was updated successfully, but these errors were encountered: