-
-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
Hello,
I just started a brand new svelte project in vite, and have a type mismatch when defining routes with wrap.
I'm using Svelte 5, so maybe that's related.
This is the setup
<script lang="ts">
import Router from "svelte-spa-router";
import wrap from "svelte-spa-router/wrap";
const routes: RouteDefinition= {
'/products/': wrap({
asyncComponent: () => import('./pages/products/Products.svelte'), // Error on asyncComponent
})
}
</script>
<Router routes={routes} />This also applies for normal route definitions
<script lang="ts">
import Router, {type RouteDefinition} from "svelte-spa-router";
import Products from "./pages/products/Products.svelte";
const routes: RouteDefinition = {
'/products/': Products // Error on '/products'
}
</script>
<Router routes={routes} />Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

