Skip to content
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

Hot reload not working with npm run dev #267

Open
qwertzguy opened this issue Sep 4, 2024 · 0 comments
Open

Hot reload not working with npm run dev #267

qwertzguy opened this issue Sep 4, 2024 · 0 comments

Comments

@qwertzguy
Copy link

When I edit a file whether root.tsx or routes/_index.tsx, I see the server log correctly rebuilding and triggering hmr with no errors, but in the browser console, I see the following and the change doesn't get reflected:

[remix] file changed: app/root.tsx
21:45:48.047 (index):41 [remix] rebuilt (798ms)
21:45:48.207 (index):57 [HMR] Component changed [app/root.tsx]
21:45:48.257 (index):62 
        
        
       GET http://localhost:3000/build/root-N3MPC6QC.js?t=1725425141512 net::ERR_EMPTY_RESPONSE
ws.onmessage @ (index):62
21:45:48.257 (index):87 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: http://localhost:3000/build/root-N3MPC6QC.js?t=1725425141512

Here's what I see on the server side in my terminal:

Rebuilding...

Done in 205ms.
 info  rebuilt (798ms)
 info  app server ready (171ms)
 info  hmr

[remix-serve] http://localhost:3000 (http://<my-ip>:3000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant