V2: Webpack + @mdx-js/loader
not playing well with Yarn 2-3's PnP
#1922
Labels
@mdx-js/loader
not playing well with Yarn 2-3's PnP
#1922
Initial checklist
Affected packages and versions
@mdx-js/[email protected]
Link to runnable example
No response
Steps to reproduce
Clone this repository (it's a minimal example).
Run
yarn webpack
.Expected behavior
Compilation should be successful.
Actual behavior
I get the following error message:
If I disable PnP, i.e. if I set
nodeLinker: node-modules
in.yarnrc.yml
, then it compiles.I believe it has to do with the dynamic import of an ES module in the package's entry point.
I'd be happy to make a PR if anybody has an idea of how to fix that.
Runtime
Node v16
Package manager
yarn v2
OS
macOS
Build and bundle tools
webpack
The text was updated successfully, but these errors were encountered: