facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.84k stars 26.88k forks source link

Keep webpack server alive even with a lowercase n #9786

Open yashshah1 opened 4 years ago

yashshah1 commented 4 years ago

Is your proposal related to a problem?

After the dev server starts listening on a port, and <Ctrl-C> is pressed, a prompt is raised "Terminate batch job (Y/N)?

Typing "n" here causes the server to shut down.

Describe the solution you'd like

Maybe there is some reason behind it, which I'm not aware of, but I think typing either "n" or "N" should keep the server alive.

eddiemonge commented 4 years ago

What version/OS are you on? When I do ctrl+c it immediately exits.

yashshah1 commented 4 years ago

I'm on Windows 10, running node v12.19.0 and the version of my react-scripts is 3.4.3

EDIT: This is a little weird, because I just happened to see this and the latest tagged version is 3.4.1. Am I doing something wrong here? I created my app with npx create-react-app which installed the following versions:

"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.3"