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
Running eslint-parallel src/app/ --ext js
throws the following error:
internal/modules/cjs/loader.js:1080
throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
^
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: node_modules/eslint-parallel/node_modules/strip-ansi/index.js
require() of ES modules is not supported.
require() of node_modules/eslint-parallel/node_modules/strip-ansi/index.js from node_modules/eslint-parallel/lib/formatter.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from [...]/node_modules/eslint-parallel/node_modules/strip-ansi/package.json.
Looks like the babel transformed eslint-parallel lib/formatter.js uses require and the strip-ansi module setting forbids it.
The text was updated successfully, but these errors were encountered:
Node: v14.16.1
eslint-parallel: 1.2.1
Caused by #25
Running
eslint-parallel src/app/ --ext js
throws the following error:
Looks like the babel transformed eslint-parallel
lib/formatter.js
uses require and the strip-ansi module setting forbids it.The text was updated successfully, but these errors were encountered: