eslint server shuts down
See original GitHub issueChecking the output channel reveals:
[Info - 5:04:27 PM] ESLint server stopped.
[Info - 5:04:28 PM] ESLint server running in node v8.9.3
[Info - 5:04:28 PM] ESLint server is running.
[Info - 5:04:29 PM] ESLint library loaded from: c:\Users\alexa\kapla3\node_modules\eslint\lib\api.js
"process.env.NODE_ENV" must be "development" to use this webpack config
[Error - 5:04:31 PM] Server process exited with code undefined. This usually indicates a misconfigured ESLint setup.
[Error - 5:04:32 PM] Connection to server got closed. Server will not be restarted.
[Info - 5:04:32 PM] ESLint server stopped.
This happens every time I open the project immediately after opening the first js file.
Running cross-env NODE_ENV=development eslint --cache --format=pretty .
on the command line works nicely.
What could I be doing wrong?
This could be related to https://github.com/Microsoft/vscode-eslint/issues/589
This is my package.json file: https://github.com/barbalex/kapla3/blob/f6cf167b503175f9ee8b31bff80329d347355d1c/package.json
More info:
- Windows 10 (up to date) and MacOs Mojave 10.14.2 (happens on both)
- project created using electron-react-boilerplate (https://github.com/electron-react-boilerplate/electron-react-boilerplate)
- vscode v1.30.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
ESLint server shut down itself · Issue #618 - GitHub
I started getting this error today out of the blue. "ESLint server shut down itself. See 'ESLint' output channel for details.
Read more >ESLint bridge server restarts fail due to missing script ...
Hey folks, the ESLint bridge runs into a bug whenever it is supposed to be restarted the log output nicely shows this and...
Read more >ESlint & Angular 13: Unable to turn off typescript-eslint/typedef
It appears that when I ran the following command: ng add @angular-eslint/schematics. That the setup process did not complete.
Read more >ESLint not working in VSCode? Help build a troubleshooting ...
I recently encountered a project where the lint script in the package.json was missing the dot at the very end which tells ESLint...
Read more >Visual Studio: Enable/Disable ESLint - Technipages
ESLint or "Linting" is a tool that can be used to ensure you are writing code that meets certain guidelines. ... Visual Studio:...
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
@barbalex this is caused by one of your scripts that are loaded into the ESLint server. It is
https://github.com/barbalex/kapla3/blob/master/internals/scripts/CheckNodeEnv.js
which callsprocess.exit(2)
which then shutsdown the ESLint server. Fix should be to simply set the required env variable 😃Yeah, I have started using TypeScript in my newest project.
After first enjoying it I stopped using it because I use function components combined wich many HOC’s using recompose. And typing HOC’s was too much of a hassle for me 😦
Little after removing TypeScript from that project react hooks came out. I refactored the project to use them. And I now wish I hadn’t removed TypeScript, as typing hooks is so much easier.
I will certainly use TypeScript in the next new project.
And BTW I can see Zürich from my kitchen window…