TypeError: Cannot read property of 'CLIEngine' of undefined
See original GitHub issueHi team,
I’ve been consistently getting this error in the output channel of ESLint and was wondering if you could point me in the right direction:
[Info - 12:48:15 AM] ESLint server stopped.
[Info - 12:48:15 AM] ESLint server running in node v11.6.0
[Info - 12:48:15 AM] ESLint server is running.
(node:3749) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'CLIEngine' of undefined
at n.then.e (/Users/username/.vscode/extensions/dbaeumer.vscode-eslint-1.8.2/server/out/eslintServer.js:1:28199)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
(node:3749) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
If there’s any suggestions or information you know of that can help me resolve this, please let me know. Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:18 (7 by maintainers)
Top Results From Across the Web
Ask Question - Stack Overflow
Module build failed (from ./node_modules/eslint-loader/dist/cjs.js): TypeError: Cannot read properties of undefined (reading 'getFormatter').
Read more >Cannot read property 'getFormatter' of undefined - JavaScript
Trying to read properties on variables that are undefined or null is a big no-no. I assume that the issue is one of...
Read more >Incompatible with eslint v8.0 (#16) · Issues - GitLab
This is what I get when trying to generate. ... ESLint: 8.0.0 TypeError: Cannot read property 'getFormatter' of undefined at module.exports ...
Read more >eslint.CLIEngine.getFormatter JavaScript and Node.js code ...
npm/test-lint.js/async.waterfall ·.waterfall([ · // execute the CLI engine · function (next) { · null, (new ESLintCLIEngine()).executeOnFiles(LINT_SOURCE_DIRS)); } ...
Read more >Node.js API - ESLint - Pluggable JavaScript Linter
Unless set to false , the eslint.lintFiles() method will throw an error when no ... This property is undefined if this message doesn't...
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 FreeTop 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
Top GitHub Comments
I just downgraded
eslint
version to 5.15.0, rannpm i
, and I am not facing the issue anymore@ashah023 I leave this one open for some time.