Open BusschaertTanguy opened 3 days ago
im having same issue
const routes = {
'/login': Login,
'/meetings': wrap({
component: Meetings,
conditions: [requiresAuthentication]
}),
'/formats': wrap({
component: Formats,
conditions: [requiresAuthenticationServerAdmin]
}),
'/servicebodies': wrap({
component: ServiceBodies,
conditions: [requiresAuthenticationAdmin]
}),
'/users': wrap({
component: Users,
conditions: [requiresAuthenticationAdmin]
}),
'/account': wrap({
component: Account,
conditions: [requiresAuthentication]
}),
'*': wrap({
component: Home,
conditions: [requiresAuthentication]
})
};
im using svelte 5 with vite and 4 compatibility mode
svelte({
compilerOptions: {
compatibility: {
componentApi: 4
}
}
}),
Thanks for the issue. Tomorrow or Monday, I should have a couple of hours to open the PR for the Svelte5 support.
Great thanks
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
This also applies for normal route definitions