Closed logesh-freshworks closed 2 years ago
So I got it to work actually!
I opened the stackblitz, and in the terminal did ctrl-c
to stop the process right away, and manually ran npm install && npm run start:dev
and it worked.
@logesh-freshworks Did you make sure to ctrl-c
and stop the process? Maybe you opened a new terminal and that previous npm start
production process is still running?
Also @sulco @EricSimons, is it possible to have the project run npm install && npm run start:dev
by default
(instead of npm install && npm start
) ?
This way someone can see those real-time changes if they adjust one of the files!
@MarkPieszak I did not run two terminals. I stopped the sever by hitting ctrl+c and tried running the dev server again. Still I had that error. Just now when I refreshed the page and tried again with npm start:dev command and made some changes , I got this error
Here is a vidyard recording link
Ahh you're right, now I'm seeing it strangely! Same error 🤔 That's odd it was working for a moment there!
This of course crashed the process, and now when trying to run again I get that 3000 port in use error, since it must have not stopped properly.
Thank you all for all the information! Changing the start command to be start:dev
is an easy one on our side for sure. But as you guys already figured out, it doesn't work right now because the lack of the ps
command. We should really add this to improve the DX for Nest.js in StackBlitz.
So let's make this happen!
I checked this feature yesterday during my livestream. All my chat was very exited. here is the recording of the stream (German). https://www.twitch.tv/webdave_de/schedule?vodID=1200707528 Maybe there are further informations.
Closing this issue as it doesn't seem to be an issue anymore. Also we have just shipped the ps
command 🎉 If it does appear to be still a problem we can open a new issue.
Describe the bug
Tried running Nestjs app in dev mode in the terminal. Its throwing the following error. The port is in use it seems.
Link to the blitz that caused the error
https://stackblitz.com/edit/nestjs-typescript-starter-rwk8zd?file=src%2Fapp.service.ts&terminal=start
Steps to reproduce
Expected behavior
Should restart the dev server when changes are made.
Screenshots
No response
Platform
Additional context
No response