Skip to content

Svelte HMR fails to reload page on Windows #871

@asv7c2

Description

@asv7c2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions