-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
What version of Remix are you using?
1.4.3
Steps to Reproduce
I am able to break the live reloading server by deleting a file. This frequently happens when doing file operations (moves, renames) on my local system. The only way to make live reloading work again is to restart the server.
- Run
remix dev
and open a page. - Delete a file (for example, deleting my
~/components/Layout.tsx
file which is referenced by~/root.tsx
causes the issue). - Restore the file.
- Manually refresh the page.
- Make a modification that should be live-reloaded.
- Manually refresh the page.
Expected Behavior
During step 2, I expect that an error would be displayed. Step 4 should not be necessary. After step 5, I should see the modification reflected in the page.
Actual Behavior
After step 2, no error is displayed anywhere. After step 5, the modification does not appear in the page. Manually refreshing continues to work normally.
In the browser console, I do see the following error:
transactions:28: WebSocket connection to 'ws://localhost:58609/socket' failed:
transactions:40: Remix dev asset server web socket error:
transactions:41: Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …}
However, the server console shows nothing out of the ordinary.
Sendouc