question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ESLint: 8.8.0 is not happy

See original GitHub issue

Hey! Thanks for this I am using it all the time on my projects 🚀

Here is my issue

As a developer I can setup the last eslint version So that I am up-to-date


If I run the instructions

yarn add eslint --dev

will install

info All dependencies
├─ @eslint/eslintrc@1.0.5
...
├─ eslint@8.8.0

Problem

yarn lint
yarn run v1.22.17
$ eslint --ignore-path .gitignore --ext .js,.ts,.tsx .

Oops! Something went wrong! :(

ESLint: 8.8.0

TypeError: Failed to load plugin '@typescript-eslint' declared in '.eslintrc » eslint-config-react-native-wcandillon': Class extends value undefined is not a constructor or null
Referenced from: /Users/cerebra/workspace/rn/react-native-bootcamp/hackathon/react-native-heroes/node_modules/eslint-config-react-native-wcandillon/index.js
    at Object.<anonymous> (/Users/cerebra/workspace/rn/react-native-bootcamp/hackathon/react-native-heroes/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/CLIEngine.js:12:34)
    at Module._compile (/Users/cerebra/workspace/rn/react-native-bootcamp/hackathon/react-native-heroes/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (/Users/cerebra/workspace/rn/react-native-bootcamp/hackathon/react-native-heroes/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at Object.<anonymous> (/Users/cerebra/workspace/rn/react-native-bootcamp/hackathon/react-native-heroes/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint/index.js:14:14)
    at Module._compile (/Users/cerebra/workspace/rn/react-native-bootcamp/hackathon/react-native-heroes/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

Solution Downgrade the version will fix the problem

yarn add --dev eslint@7.32.0 

Or I think we will to update dependencies

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wcandilloncommented, Mar 18, 2022

Reopening since installing the latest version doesn’t seem to use the added resolutions

0reactions
wcandilloncommented, Aug 18, 2022

no no no no David: Thank You 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating to v8.0.0 - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Environment key "es2022" is unknown with ESLint: 8.8.0 #15580
Hi @ljharb, do you know how to config ESLint to validate ES2022 code then? It is quite confusing that they announced that they...
Read more >
node.js - ESLint error in version 8.8.0 - Stack Overflow
My only guess as to what is causing this error is either a package not being in the correct version (version conflicts), or...
Read more >
gulp-eslint-new - npm
A gulp plugin to lint code with ESLint 8. Latest version: 1.7.0, last published: 6 days ago. Start using gulp-eslint-new in your project...
Read more >
please specify path to eslint package - You.com - You.com
I'm not sure what version os eslint Brian is using and I'm sure if you pull ... ESLint, 8.8.0 ... but eslint-plugin-eslint-plugin at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found