I have a small React app that I am building. I do it during my spare time at work, so I am often walking away from it for 30+ minutes at a time. I will be working on it, walk away, and when I come back the hot refresh on the live preview has stopped working. If I then refresh the live preview page, it shows a 404 error. At this point, even if I try to restart npm or close and reopen the codespace, the live preview will only give me a 404 error. Sometimes I can see a glimpse of the github redirect page if I just paste in the local url + the port, so I know it's at least connecting to the port.
If I try and open it on another computer, the live preview is a blank page with a warning in the console saying that it is running in quirks mode.
If I start a new codespace on the React template, that new one will display a live preview with no issues. If I open a new codespace with the same code by forking the project, it continues to work as expected.
Version: 1.132.0
Commit: df53daabb18cd157bdb08c7f01c34df936cf12f4
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Embedder: codespaces
I have a small React app that I am building. I do it during my spare time at work, so I am often walking away from it for 30+ minutes at a time. I will be working on it, walk away, and when I come back the hot refresh on the live preview has stopped working. If I then refresh the live preview page, it shows a 404 error. At this point, even if I try to restart npm or close and reopen the codespace, the live preview will only give me a 404 error. Sometimes I can see a glimpse of the github redirect page if I just paste in the local url + the port, so I know it's at least connecting to the port.
If I try and open it on another computer, the live preview is a blank page with a warning in the console saying that it is running in quirks mode.
If I start a new codespace on the React template, that new one will display a live preview with no issues. If I open a new codespace with the same code by forking the project, it continues to work as expected.
Version: 1.132.0
Commit: df53daabb18cd157bdb08c7f01c34df936cf12f4
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Embedder: codespaces