When user changes next.config.js, next runner notices changes, and tells about that:
> Ready on http://localhost:3000
> Found a change in next.config.js, restarting the server...
Then it recompiles everything successfully, but after that fails out of next with error:
Port 3000 is already in use.
Use `npm run start -- -p <some other port>`.
error Command failed with exit code 1.
In output of ps I still see node running with next-dev.
Add next.config.js (correct one)npx nextnext.config.jsnext failing and next-dev still running in backgroundServer restarts and proceeds to work
next.js v7.0.2P.S. Tried on Debian 9.5, does not reproduce.
This was probably fixed already 👍
I'm also seeing this on Mac OS 10.14, next.js 7.0.2, node 11.5
I'm also seeing this on Mac OS 10.14, next.js 7.0.2, node 11.5
"next": "^7.0.2", - Each time. The Same :-(
Same setup as @fnpen, seeing this issue.
Feel free to create a PR to fix this.
Node v11.1.0
Next v8.0.0-canary.17
Works fine 👍
DONE Compiled successfully in 1346ms 2:44:58 PM
> Ready on http://localhost:3000
> Found a change in next.config.js, restarting the server...
✔ success server compiled in 128ms
✔ success client compiled in 847ms
DONE Compiled successfully in 1448ms
I can confirm this is an issue.

Already up-to port 3003... If you leave it long enough it would refresh and start up again but you will not be able to kill the process with ctrl + c. Hitting ctrl + c seems like it kills the process but you will need to specify a new port.

However, in spite of the 'port is already in use error', after a few seconds, it will start up on the specified port.
We've changed the way the process works, it's currently out on the canary channel. We give a warning saying to restart the server as we can't restart automatically since it's now a single process. This also ties into the custom server which already didn't have this behavior.
https://github.com/zeit/next.js/blob/canary/packages/next/bin/next.ts#L83-L92