Bug: Error while loading rule 'react/prefer-stateless-function': Cannot read property 'version' of null Occurred while linting #15646
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
repro:needed
Projects
Environment
Node version: 16.14.0
npm version: 8.5.2
Local ESLint version: 8.9.0
Global ESLint version: -
Operating System: Windows 11 2H2...527
What parser are you using?
@babel/eslint-parser
What did you do?
console.log('this should get a warning');
What did you expect to happen?
I am expecting eslint to work, throwing warnings and errors where it should.
What actually happened?
Eslint load fails.
Participation
Additional comments
Error details:
[Info - 16:29:28] ESLint server is starting
[Info - 16:29:28] ESLint server running in node v14.16.0
[Info - 16:29:28] ESLint server is running.
[Info - 16:29:30] ESLint library loaded from: \node_modules\eslint\lib\api.js
[Info - 16:29:31] Error while loading rule 'react/prefer-stateless-function': Cannot read property 'version' of null Occurred while linting AnyJSFile.js
The text was updated successfully, but these errors were encountered: