"Failed to load the ESLint library"
See original GitHub issueHi!
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:
- Created 6 years ago
- Comments:10 (4 by maintainers)
Top 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 >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
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.You are right. It works when I start it from console. Thank you for your time!