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:

How To Switch Node.js Versions With NVM

How to switch Node.js version: A cross-platform guide for NVM and alternatives

Use NVM, Node Version Manager, to switch between Node.js versions, simplifying your development process.

Precious Luke
Mar 10, 2025 ⋅ 9 min read
How To Install And Use NVM: A Complete Guide For Managing Node.js Versions

How to install and use NVM

Tired of version conflicts with Node.js? NVM lets you switch between multiple versions easily, ensuring your projects always run smoothly with the right environment.

Carlos Mucuho
Mar 10, 2025 ⋅ 7 min read

JavaScript’s sort()method: From basics to custom sorting

Discover how to sort arrays in JavaScript using sort() and toSorted(), including customization and language-sensitive sorting techniques.

Joseph Mawa
Mar 7, 2025 ⋅ 11 min read
Migrating To Valkey From Redis

Migrating to Valkey from Redis

With Redis’ license change and the launch of Valkey 8.0 as an alternative, this guide covers key differences and migration steps.

Matteo Di Pirro
Mar 6, 2025 ⋅ 5 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