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.

"Failed to load the ESLint library"

See original GitHub issue

Hi! I have ESLint installed globally and .eslintrc.json in my home dir. VSCode (Version 1.20.1) is installed with snap. I use NVM. which node /home/ris/.nvm/versions/node/v9.6.1/bin/node

which npm /home/ris/.nvm/versions/node/v9.6.1/bin/npm

which eslint /home/ris/.nvm/versions/node/v9.6.1/bin/eslint

printenv NODE_PATH or ‘echo $NODE_PATH’ is empty BUT when I set "eslint.trace.server": "verbose" I got [Trace - 2:27:54 PM] NODE_PATH value is: /usr/local/lib/node_modules

I’ve already checked similar issues but can’t figure out the solution.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dbaeumercommented, Mar 14, 2018

How do you start VS Code? Can you start it from the terminal where npm config get prefix prints the correct value. Then everything is fine I guess. I suspect that when VS Code is started using some dock icon then the environment is not set correctly (e.g.the .bashrc usually doesn’t do all things when not in interactive mode). This is nothing VS Code not ESLint can fix. It is how shells / *nix behaves.

0reactions
ris58hcommented, Mar 14, 2018

You are right. It works when I start it from console. Thank you for your time!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to load the ESLint library for the document ... - GitHub
I'm seeing Failed to load the ESLint library for the document when eslint is installed by yarn. I have configured the following -...
Read more >
ESLint not working in VSCode – possible fixes - LinuxPip
To verify, press Ctrl+Shift+U in VSCode to open the Output panel after opening a JavaScript file with a known eslint issue. If it...
Read more >
Configuration Files - ESLint - Pluggable JavaScript Linter
In this case, while linting main.js , the configurations within lib/ are ... If eslint could not find any configuration file in the...
Read more >
[eslint] failed to load config "standard" to extend from. - You.com
Locally in your project, run npm init @eslint/config (will ask you some questions and generate a new .eslint.{js|yml|json} out of it); When asked...
Read more >
VS Code ESLint extension - Visual Studio Marketplace
no modal dialog is shown when the ESLint extension tries to load an ESLint library for the first time and an approval is...
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