Closed exqmjmz closed 4 months ago
This warning is just let you know as a dev that the "params" prop is passed to the component but you didn't export it.
To fix it, add export let params;
.
In the documentation, you can find more info, take a look for example at: https://github.com/ItalyPaleAle/svelte-spa-router/blob/main/Advanced%20Usage.md#async-routes-and-loading-placeholders
This warning is just let you know as a dev that the "params" prop is passed to the component but you didn't export it.
To fix it, add
export let params;
.In the documentation, you can find more info, take a look for example at: https://github.com/ItalyPaleAle/svelte-spa-router/blob/main/Advanced%20Usage.md#async-routes-and-loading-placeholders
I have already exported the routing component, but the problem still exists
In your Pages.svelte?
In your Pages.svelte?
oh,i know!thank
The error is located const routes = PageRoutes; What is the reason for this error?
Page routes can jump, but errors will occur in the console.
svelte:4.2.12