2022-02-01
2467
#svelte
Madars Bišs
89544
Feb 1, 2022 ⋅ 8 min read

Build a single-page application in Svelte with svelte-spa-router

Madars Bišs Madars Bišs (aka Madza) is a technical writer. In his spare time, he loves to explore new topics and contribute to open-source web development.

Recent posts:

What is AI code generation and how does it work?

What is AI code generation and how does it work?

Discover how AI code generation works and explore top artificial intelligence coding tools, benefits, and real-world use cases.

Chizaram Ken
Apr 10, 2025 ⋅ 4 min read
what is vibe coding

What is vibe coding? And is it worth the hype?

Vibe coding is taking the dev world by storm. Break down what it actually means, how the term became popularized, and why it’s catching on.

Elijah Asaolu
Apr 9, 2025 ⋅ 5 min read
typescript record types

Level up your TypeScript with Record types

Learn about the TypeScript Record type, its basic usage, and practical use cases, including how to use it with generics.

Matteo Di Pirro
Apr 9, 2025 ⋅ 9 min read
tanstack start framework

An introduction to the TanStack Start framework

Discover the new full-stack React Framework, TanStack Start, and use it to build a simple developer portfolio styled with Tailwind CSS.

Amazing Enyichi Agu
Apr 9, 2025 ⋅ 13 min read
View all posts

4 Replies to "Build a single-page application in Svelte with svelte-spa-router"

  1. good example.

    But I need a proccess in app.svelte to run

    let NODE_ENV = ‘production’
    window.process = {
    env: { NODE_ENV },
    …window.process
    };

  2. [!] RollupError: Could not resolve “./routes.js” from “src/App.svelte”

    i get this error. Any ideas? Thanks!

Leave a Reply