Proxy error with Vite Hot Reload

This issue has been tracked since 2022-04-02.

I create an application with svelte on vitejs and I use svelte-routing.

On my App.svelte I have this:

<script lang="ts">
  import { Router, Route, Link } from "svelte-routing"
  import Home from "./routes/Home.svelte"
  import NF404 from "./routes/NF404.svelte"

  export let url = ""
</script>

<Router url={url}>
  <nav class="navbar">
    ... (links)
  </nav>
  <div class="container">
    <Route path="*"><NF404/></Route>
    <Route path="/"><Home/></Route>
  </div>
</Router>

and when i change this

<div class="container">
  <Route path="*"><NF404/></Route>
  <Route path="/"><Home/></Route>
</div>

to that

<div class="container">
  <Route path="/"><Home/></Route>
  <Route path="*"><NF404/></Route>
</div>

I have this error

"vite": "^2.9.0"
"svelte": "^3.44.0",
"svelte-routing": "^1.6.0"

image

More Details About Repo
Owner Name EmilTholin
Repo Name svelte-routing
Full Name EmilTholin/svelte-routing
Language JavaScript
Created Date 2017-11-28
Updated Date 2022-12-03
Star Count 1711
Watcher Count 21
Fork Count 151
Issue Count 59

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date