eslint-plugin-import: eslint-plugin-import does not support eslint 8 yet
Environment Info:
Node version: v14.17.6 npm version: v8.0.0 Local ESLint version: v8.0.0 (Currently used) Global ESLint version: v8.0.0 Operating System: linux 5.13.19-200.fc34.x86_64
Oops! Something went wrong! :(
ESLint: 8.0.0
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/util/glob-util' is not defined by "exports" in /home/milad/Desktop/sakneen/sakneen-api/node_modules/eslint/package.json
at throwExportsNotFound (internal/modules/esm/resolve.js:299:9)
at packageExportsResolve (internal/modules/esm/resolve.js:522:3)
at resolveExports (internal/modules/cjs/loader.js:449:36)
at Function.Module._findPath (internal/modules/cjs/loader.js:489:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:875:27)
at Function.Module._load (internal/modules/cjs/loader.js:745:27)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (/home/milad/Desktop/sakneen/sakneen-api/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at Object.<anonymous> (/home/milad/Desktop/sakneen/sakneen-api/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js:43:34)
at Module._compile (/home/milad/Desktop/sakneen/sakneen-api/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 28
- Comments: 17 (8 by maintainers)
Commits related to this issue
- Bumped eslint-plugin-import from 2.24.2 to 2.25.2 See https://github.com/import-js/eslint-plugin-import/issues/2252 — committed to rospino74/Quizlet-Bypass by rospino74 3 years ago
- Bumped eslint-plugin-import from 2.24.2 to 2.25.2 See https://github.com/import-js/eslint-plugin-import/issues/2252 — committed to rospino74/Quizlet-Bypass by rospino74 3 years ago
This plugin is not yet compatible with eslint 8. npm 8 should have warned you when installing it.
Duplicate of #2251. Duplicate of #2211.
@BeAmazedVariable first update eslint-plugin-import, and try again.
Yes, it should have.
Either way, eslint-plugin-import supports eslint 8 now, so you shouldn’t have any issues.
@morijenab that’s because the jsx-a11y plugin doesn’t support eslint 8 yet.
You won’t be able to update until everything you depend on supports it.
@ljharb I just try and it did work out. Thank you so much for your instruction