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.

eslint server shuts down

See original GitHub issue

Checking 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:

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dbaeumercommented, Dec 20, 2018

@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 calls process.exit(2) which then shutsdown the ESLint server. Fix should be to simply set the required env variable 😃

0reactions
barbalexcommented, Dec 20, 2018

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…

Read more comments on GitHub >

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

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