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

  1. npm init svelte@next
  2. create any page in routes (ex. page.svelte)
  3. navigate to this page through address bar
  4. try modify page.svelte content
  5. 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)

Most upvoted comments

My solution I used last time no longer seems to work and I have the same bug. Any further investigations would be appreciated.

Screenshot

This screenshot is indicative of some weird path combining, where it tries to combine the local path with the server route. Very strange.