Search code examples
navigationsveltesveltekitsvelte-3

Nested Routes in SvelteKit


SvelteKit gives me a 404 when I try to navigate to my nested route. My folder structure:

/routes/
  /+layout.svelte
  /+page.svelte
  /about/
    /+page.svelte
  /work/
    /+page.svelte
    /item1/
      /+page.svelte

In my browser I can navigate to /work, but navigating to /work/item1 throws a 404 error. What could be the reason?


Solution

  • Updating to Svelte 3.52 seemed to solve the problem.