[Bug?]: ERR_REQUIRE_ESM
in Yarn PnP mode using Node.js 22 with --experimental-require-module
flag
#6336
Labels
bug
Something isn't working
Self-service
Describe the bug
ERR_REQUIRE_ESM
when requiring an ES module from CommonJS using Yarn PnP with Node.js 22 with--experimental-require-module
flag.To reproduce
https://codesandbox.io/p/devbox/nervous-leavitt-ndnn53
Environment
Additional context
Would expect this to work, thanks to nodejs/node#51977.
Disabling Yarn PnP works: https://codesandbox.io/p/devbox/nervous-leavitt-forked-9mgdvt
The text was updated successfully, but these errors were encountered: