kit: Svelte HMR fails to reload page on Windows
Describe the bug SvelteKit fails to reload page when navigate to page through address bar.
Logs
Failed to load resource: the server responded with a status of 404 (Not Found)
client:190 [hmr] Failed to reload D:\Dev\test\src\routes\page.svelte. This could be due to syntax errors or importing non-existent modules. (see errors above)
To Reproduce
- npm init svelte@next
- create any page in routes (ex. page.svelte)
- navigate to this page through address bar
- try modify page.svelte content
- sveltekit throws error 404 and page is not refresh / reloading.
I am using windows. Maybe it only windows related issue. Someone need check on other os.
Expected behavior
Stacktraces Information about your SvelteKit Installation:
Severity
Additional context
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 28 (15 by maintainers)
My solution I used last time no longer seems to work and I have the same bug. Any further investigations would be appreciated.
This screenshot is indicative of some weird path combining, where it tries to combine the local path with the server route. Very strange.