-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remix dev asset server web socket error #2958
Comments
Hey, I had the same issue. Deleting my package-lock & node_modules however, fixed the issue for me. Hope this is the case for you as well! |
#1601 |
Been having this issue as well since upgrading to v1.4.3. Re-installing dependencies did not work for me either. |
Same bug has been happening to me as well since v1.4.3. Can reproduce the bug just as OP described. |
So I believe the issue is that for some reason It looks like Remix is not respecting My work around is to use |
closes REM-1091 closes #2958 Signed-off-by: Logan McAnsh <[email protected]>
closes REM-1091 closes #2958 Signed-off-by: Logan McAnsh <[email protected]>
closes REM-1091 closes #2958 Signed-off-by: Logan McAnsh <[email protected]>
closes REM-1091 closes #2958 Signed-off-by: Logan McAnsh <[email protected]>
🤖 Hello there, We just published version Thanks! |
Closed by #3206 |
🤖 Hello there, We just published version Thanks! |
Hello, I am on 1.5.1 and I'm getting this exact issue. I am running Firefox 100.1 with all extensions disabled. |
For anyone still having this issue after 1.5.0, try adding devServerPort: 8002 to |
@xanderberkein could you put that into all of the Remix stacks configurations? I ran into this issue when using the Blues stack... |
Thanks, this worked wonders with #2485, getting really tired manually reloading for every change (even on 1.5.1). Though I'm confused, this should be reopened and fixed internally, right? Because the TS docs on |
Yes this is an issue with templates that don’t use Remix App Server. Because See the following issue for more detail. |
Adding to remix.config.js solves the issue. I wonder why all of a sudden LiveReload doesn't work whilst the app was still working prior refactoring the code to components structure. |
Further description about the bug in remix-run/remix#2958. I had this very issue today and the workaround was to add devServerPort: 8002 here.
In addition to @kmocorro's comment about |
Thanks, for me this issue fixed on v1.5.1 💯. |
I had a CORS plugin that was enabled. Turning this |
I am adding this comment well after a generally accepted solution just in case the following is the actual problem for some people who are still struggling. One of the devs on my team was experiencing this error with Remix v1.18, even when setting up a fresh Remix app. Nobody else on the team seemed to have this issue. All the various solutions suggested did not work. One difference was that he was on Windows 10 while everyone else was on Windows 11. We finally discovered this article: He followed the advice, which I replicate here in case the link goes away.
Then use these commands to stop WINNAT, exclude port 8002 from being secretly reserved, restart WINNAT. This is apparently durable such that after reboot, the protection from Windows reserving the port remains.
If you are using a port other than 8002, use that instead. If the random ports sometimes get blocked and sometimes not, it could be you are running up against some reserved ports. Locking in port 8002 and then doing this would presumably solve it. This may not be the solution generally, but it is what we found explicitly worked along with a clear reason why. Best of luck! |
For anyone running into this in 2023, the
|
Ok. guys.
I don't use any dev ports in remix-config
|
any solutions for docker? edit: found a solution :) |
If you're using Remix with Vite just remove the |
What version of Remix are you using?
1.4.1
Steps to Reproduce
1.npm i create-remix mydemo
2.remix dev
3.Modify or add files in routes
4.chrome error(Remix dev asset server web socket error:)
Expected Behavior
Automatically refresh the page to match the new route.
To fix this I had to reboot.
Actual Behavior
The text was updated successfully, but these errors were encountered: