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
I'm trying to use import-cwd with eslint and I think they have moved to ESM on their newest release 🤔
When I try to import-cwd I get the following error:
/Users/mansona/git/projects/lint-to-the-future/lint-to-the-future-eslint/node_modules/esm/esm.js:1
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /Users/mansona/git/qonto/qonto-js/node_modules/@eslint/eslintrc/universal.js
require() of ES modules is not supported.
require() of /Users/mansona/git/qonto/qonto-js/node_modules/@eslint/eslintrc/universal.js from /Users/mansona/git/qonto/qonto-js/node_modules/eslint/lib/linter/linter.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 universal.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/mansona/git/qonto/qonto-js/node_modules/@eslint/eslintrc/package.json.
It could be because I'm using the esm module but I'm not sure why it was working before and suddenly stopped working 🤔
The text was updated successfully, but these errors were encountered:
I'm trying to use import-cwd with
eslint
and I think they have moved to ESM on their newest release 🤔When I try to import-cwd I get the following error:
It could be because I'm using the
esm
module but I'm not sure why it was working before and suddenly stopped working 🤔The text was updated successfully, but these errors were encountered: