Quitting react dev server closes browser and any open tabs
See original GitHub issueThis only occurs if create-react-app creates the browser process itself. See info below.
Environment
-
node -v
: v6.11.3 -
npm -v
:5.4.1 -
yarn --version
(if you use Yarn): -
npm ls react-scripts
(if you haven’t ejected): react-scripts@1.0.12 -
Operating system: Ubuntu 16.04
-
Browser and version (if relevant): Chromium 60.0.3112.113
Steps to Reproduce
- Without a browser open, run
npm run start
in a repo created withcreate-react-app
- Open a few tabs in the browser created by that command.
- Ctrl-C the react server.
Expected Behavior
The browser remains open. Or maybe gives a confirm dialog, then closes.
Actual Behavior
The browser closes, losing my open tabs.
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
React app stuck on "Starting the development server"
I have a react project that I want to convert to Typescript and I started as you noted with the "create-react-app", added all...
Read more >How to Stop a React App from Running in Windows
It is running in a browser, but closing the browser does not stop the app: · To stop this from running, in the...
Read more >React App Not Working? 4 Quick Debugging Tips - Dave Ceddia
Check the Network tab - Still got that console open? Click the Network tab and make sure there are no errors. It may...
Read more >webpack-dev-server - npm
Start using webpack-dev-server in your project by running `npm i webpack-dev-server`. ... --no-open Does not open the default browser.
Read more >Fix "Aw, Snap!" page crashes and other page loading errors
On your Android phone or tablet, open the Chrome app Chrome . · Tap More More and then New Incognito tab. · In...
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
I think the easiest workaround is to have your browser up and running well before starting the dev server.
If the browser is an independent process, it won’t be closed when the dev server is interrupted.
I do not see this in Win10, Firefox, & bash in VSCode.