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.

TypeError: Cannot read property of 'CLIEngine' of undefined

See original GitHub issue

Hi 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
decentralisercommented, Apr 23, 2019

I just downgraded eslint version to 5.15.0, ran npm i, and I am not facing the issue anymore

1reaction
dbaeumercommented, Apr 16, 2019

@ashah023 I leave this one open for some time.

Read more comments on GitHub >

github_iconTop 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 >

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