Node must be provided when reporting error if location is not provided
See original GitHub issueThis happens on random and most of the times the error is not current it also happens top pop up when I’m just typing code
Stack trace
AssertionError [ERR_ASSERTION]: Node must be provided when reporting error if location is not provided
at assertValidNodeInfo (/usr/local/lib/node_modules/eslint/lib/linter/report-translator.js:98:9)
at /usr/local/lib/node_modules/eslint/lib/linter/report-translator.js:311:9
at Object.report (/usr/local/lib/node_modules/eslint/lib/linter/linter.js:917:41)
at Program (/Users/Caleb/Desktop/Barnabus-development/main-bot/node_modules/eslint-plugin-prettier/eslint-plugin-prettier.js:265:23)
at /usr/local/lib/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/usr/local/lib/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/usr/local/lib/node_modules/eslint/lib/linter/node-event-generator.js:254:26)
at NodeEventGenerator.applySelectors (/usr/local/lib/node_modules/eslint/lib/linter/node-event-generator.js:283:22)
at NodeEventGenerator.enterNode (/usr/local/lib/node_modules/eslint/lib/linter/node-event-generator.js:297:14)
All my dev dependencies
"eslint": "^7.2.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-prettier": "^3.1.4",
"prettier": "^2.0.5"
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
Node must be provided when reporting error if location is not ...
Error with no-unused-vars when running ESLint 7.11. 0 - Stack Overflow. Stack Overflow for Teams – Start collaborating and sharing organizational knowledge.
Read more >Node must be provided when reporting error if ... - GitHub
Tell us about your environment ESLint Version: v3.9.1 Node Version: v6.9.1 npm Version: 4.0.1 What parser (default, Babel-ESLint, etc.)
Read more >Eslint fails on file position change with configured eslint-plugin ...
It looks like the issue with a new file always is here till that file is not used somewhere in the project. However,...
Read more >Setting Up Error Reporting for Node.js - Google Cloud
The Error Reporting library for Node. js can be used without needing to explicitly provide credentials.
Read more >Working with Rules - ESLint - Pluggable JavaScript Linter
This affects the no-unused-vars rule. Returns true if a variable with the given name was found and marked as used, otherwise false ....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Has anyone found any solution? I am having this problem with files containing enum type
In my case, I was making use of typescript-eslint and this solved my issue: no-unused-vars override
Detailed info here: https://github.com/typescript-eslint/typescript-eslint/issues/2486