You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created many websites with svelte+sveltekit that include page transitions, both before and after runes (svelte 5). And on my recent website I cannot make it work because the client side routing does not seem to work. I actually have a recent other website that is very similar. I keep comparing them and don't understand what would be different.
They both use svelte 5, sveltekit 2 and vite 6.
I use the static adapter on both.
I set the ssr and prerender contants to false in both +layout.js.
I implemented the same mechanism with a fade and a #key on data.pathname which comes from what my layout load function.
Everything else works fine in both of them.
As far as I can tell, the only significant difference is the specific versions for each library.
The reason why I know the new one does not have the client side router work is because I $inspect the data.pathname and each time I change page, it refreshes and adds a single init value to the logs.
I would be grateful if anybody could help me find out what the problem is.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am having a hard time with something.
I have created many websites with svelte+sveltekit that include page transitions, both before and after runes (svelte 5). And on my recent website I cannot make it work because the client side routing does not seem to work. I actually have a recent other website that is very similar. I keep comparing them and don't understand what would be different.
ssr
andprerender
contants tofalse
in both+layout.js
.#key
ondata.pathname
which comes from what my layout load function.As far as I can tell, the only significant difference is the specific versions for each library.
The website which works has these packages:
And the new one which does not work has these packages:
The reason why I know the new one does not have the client side router work is because I
$inspect
thedata.pathname
and each time I change page, it refreshes and adds a singleinit
value to the logs.I would be grateful if anybody could help me find out what the problem is.
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions