[Bug?]: Dynamic ES module import in .cjs
file not working with PnP
#4034
Labels
bug
Something isn't working
waiting for feedback
Will autoclose in a while unless more data are provided
Self-service
Describe the bug
Note: this looks similar to #3671 and #3687 but wasn't fixed by #3667.
I'm getting the following error when using the
@mdx-js/[email protected]
Webpack loader:But the module does exist.
If I switch to a
node-modules
linker, then it compiles successfully.I believe it has to do with the dynamic import of an ES module in the package's entry point.
To reproduce
Clone this repository (it's a minimal example).
Run
yarn webpack
.Environment
System: OS: macOS 12.1 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Binaries: Node: 16.13.2 - /private/var/folders/_m/hj6rftx17hl0zb66kk7y978m0000gp/T/xfs-2ff2f68f/node Yarn: 3.2.0-rc.12 - /private/var/folders/_m/hj6rftx17hl0zb66kk7y978m0000gp/T/xfs-550fed4e/yarn npm: 8.3.2 - ~/.nvm/versions/node/v16.13.2/bin/npm
Additional context
No response
The text was updated successfully, but these errors were encountered: