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 upgraded to ESLint 7.8 today, and by doing this @eslint/eslintrc was also installed. Now, when I try to run ESLint from Yarn 2, the following error pops up:
Error: @eslint/eslintrc tried to access globals, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: globals (via "globals")
Required by: @eslint/eslintrc@npm:0.1.0 (via /Users/MY_USERNAME/MY_PROJECT/.yarn/cache/@eslint-eslintrc-npm-0.1.0-30c7545ebe-53d20acf9f.zip/node_modules/@eslint/eslintrc/conf/)
Require stack:
- /Users/MY_USERNAME/MY_PROJECT/.yarn/cache/@eslint-eslintrc-npm-0.1.0-30c7545ebe-53d20acf9f.zip/node_modules/@eslint/eslintrc/conf/environments.js
- /Users/MY_USERNAME/MY_PROJECT/.yarn/cache/eslint-npm-7.8.0-3feded5885-2c25ff617b.zip/node_modules/eslint/lib/linter/linter.js
- /Users/MY_USERNAME/MY_PROJECT/.yarn/cache/eslint-npm-7.8.0-3feded5885-2c25ff617b.zip/node_modules/eslint/lib/linter/index.js
- /Users/MY_USERNAME/MY_PROJECT/.yarn/cache/eslint-npm-7.8.0-3feded5885-2c25ff617b.zip/node_modules/eslint/lib/cli-engine/cli-engine.js
- /Users/MY_USERNAME/MY_PROJECT/.yarn/cache/eslint-npm-7.8.0-3feded5885-2c25ff617b.zip/node_modules/eslint/lib/eslint/eslint.js
- /Users/MY_USERNAME/MY_PROJECT/.yarn/cache/eslint-npm-7.8.0-3feded5885-2c25ff617b.zip/node_modules/eslint/lib/eslint/index.js
- /Users/MY_USERNAME/MY_PROJECT/.yarn/cache/eslint-npm-7.8.0-3feded5885-2c25ff617b.zip/node_modules/eslint/lib/cli.js
- /Users/MY_USERNAME/MY_PROJECT/.yarn/cache/eslint-npm-7.8.0-3feded5885-2c25ff617b.zip/node_modules/eslint/bin/eslint.js
at internalTools_makeError (/Users/MY_USERNAME/MY_PROJECT/.pnp.js:23429:34)
at resolveToUnqualified (/Users/MY_USERNAME/MY_PROJECT/.pnp.js:24387:23)
at resolveRequest (/Users/MY_USERNAME/MY_PROJECT/.pnp.js:24479:29)
at Object.resolveRequest (/Users/MY_USERNAME/MY_PROJECT/.pnp.js:24545:26)
at Function.external_module_.Module._resolveFilename (/Users/MY_USERNAME/MY_PROJECT/.pnp.js:23662:34)
at Function.external_module_.Module._load (/Users/MY_USERNAME/MY_PROJECT/.pnp.js:23527:48)
at Module.require (internal/modules/cjs/loader.js:1080:19)
at require (/Users/MY_USERNAME/MY_PROJECT/.yarn/cache/v8-compile-cache-npm-2.1.0-86ea69cdd0-b7490d5484.zip/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at Object.<anonymous> (/Users/MY_USERNAME/MY_PROJECT/.yarn/cache/@eslint-eslintrc-npm-0.1.0-30c7545ebe-53d20acf9f.zip/node_modules/@eslint/eslintrc/conf/environments.js:11:17)
at Module._compile (/Users/MY_USERNAME/MY_PROJECT/.yarn/cache/v8-compile-cache-npm-2.1.0-86ea69cdd0-b7490d5484.zip/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)
When downgrading to ESLint 7.7, the error is solved.
The text was updated successfully, but these errors were encountered:
I upgraded to ESLint 7.8 today, and by doing this
@eslint/eslintrc
was also installed. Now, when I try to run ESLint from Yarn 2, the following error pops up:When downgrading to ESLint 7.7, the error is solved.
The text was updated successfully, but these errors were encountered: