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.

“Cannot convert undefined or null to object” after mixing eslint versions with --cache

See original GitHub issue

Tell us about your environment

  • ESLint Version: 5.16.0
  • Node Version: 10.15.3
  • npm Version: 6.9.0

What parser (default, Babel-ESLint, etc.) are you using? default

Please show your full configuration: (empty)

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

$ mkdir /tmp/test
$ cd /tmp/test
$ touch .eslintrc foo.js
$ npx eslint@5.16.0 --cache foo.js
npx: installed 117 in 5.458s
$ npx eslint@5.13.0 --cache foo.js
npx: installed 119 in 3.794s
$ npx eslint@5.16.0 --cache foo.js
npx: installed 117 in 4.248s
Cannot convert undefined or null to object

What did you expect to happen? eslint should not crash.

Are you willing to submit a pull request to fix this bug? Sure, if we can diagnose it.

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
eslint-deprecated[bot]commented, May 23, 2019

Unfortunately, it looks like there wasn’t enough interest from the team or community to implement this change. While we wish we’d be able to accommodate everyone’s requests, we do need to prioritize. We’ve found that issues failing to reach accepted status after 21 days tend to never be accepted, and as such, we close those issues. This doesn’t mean the idea isn’t interesting or useful, just that it’s not something the team can commit to.

Thanks for contributing to ESLint and we appreciate your understanding.

0reactions
timabbottcommented, May 27, 2019

Is it intended that this bot close bugs that cause eslint to crash?

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm err! cannot convert undefined or null to object - You.com
Cannot convert undefined or null to object npm ERR! A complete log of this run can be found in: for fixing this I...
Read more >
Server Error : TypeError: Cannot convert undefined or null to ...
Server Error : TypeError: Cannot convert undefined or null to object ... I tried the following codes but I am now getting a...
Read more >
browserslist | Yarn - Package Manager
The config to share target browsers and Node.js versions between different ... Fix Cannot convert undefined or null to object (by Antoine Clausse)....
Read more >
You don't need null - DEV Community ‍ ‍
When we use nullish values, what we want to express is that something is ... Uncaught TypeError: Cannot convert undefined or null to...
Read more >
typeof jQuery !== 'undefined' Code Example - Code Grepper
... Uncaught (in promise) TypeError: Cannot convert undefined or null to object ... cannot read property of undefined js laravel mix ...
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