Replies: 1 comment
-
I encountered this problem using VSCode
with the split console (bash and powershell) Most of the time, the app behaves correctly - however, using the Ctrl-C to stop it the listener on port 8000 remains active. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Going through the Gatsby tutorial I observed that I cannot rerun the application that failed:
I stopped the previously run app which was different only in having a syntax error, by issuing a Ctrl-C signal. Then I deleted the node_modules folder and yarn.lock. rerun npm install, followed by gatsby develop
Instead of accepting the offer to run the app a different port, which would result with the app running at 8001 - conflicting with Gatsby using this (8001) port for a different purpose, I did the following
and then
At this point, the app would run normally using port 8000.
Please note my real point is not to share a solution for a problem that should not take place if the Ctrl-C signal processing would do the cleanup I did manually (see above). Trying to stay as modest as I can, it is my perception that almost everyone gets trapped with this "port in use" issue, so I am surprised that such a problem still exists. I would rather believe I am somewhat confused and would really appreciate it if someone explains it to me.
Beta Was this translation helpful? Give feedback.
All reactions