-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
Adding ES6 import("find-cache-dir");
should be a breaking change.
#1015
Comments
Node.js has introduced support for ESM in the VM API in v12.16 (https://nodejs.org/api/vm.html#class-vmmodule), and this package only supports Node.js 14.15+ ( Line 10 in a186b8b
|
I'm having this error when upgrading to
|
Please upgrade Yarn to 3.1 or above, see https://yarnpkg.com/getting-started/qa#does-yarn-support-esm |
We're using Yarn 3.6.1 |
Can you share a reproduction repo? Babel-loader itself is using yarn pnp as well. And our CI looks good. |
I am using yarn v3.5.1 with classic node_modules layout. In my case error looks like this:
I solved it by upgrading webpack-cli to 4.9.1 (or higher). See for details webpack/webpack-cli#3006 |
I'm submitting a bug report
Babel Loader Version:
9.1.13
Please tell us about your environment:
n/a
Current behavior:
Package contains ES6 import. Introduced recently in this PR: https://github.com/babel/babel-loader/pull/995/files#diff-3fb1021e8b65be53e466751de219baf5282edb86a3a1ad8fe429cac948991af7R16
Caused by upgrading
find-cache-dir
from v4 to v5.Using Webpack build inside Jest tests is failing.
Expected/desired behavior:
Either new breaking change version, or reverting
find-cache-dir
upgrade.Simple example https://codesandbox.io/p/devbox/babel-loader-jest-rmkkd2?file=%2Fpackage.json
npm run test
The text was updated successfully, but these errors were encountered: