Why would onMount not ever fire after Vite upgrade? #14208
Replies: 1 comment
-
wow, after lots of troubleshooting i found this in our vite config and removing it fixed the issue! ![]() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
in an existing sveltekit app (latest of everything:
[email protected] [email protected] @sveltejs/[email protected] @sveltejs/[email protected]
) i'm not able to getonMount
(andbefore/afterNavigate
and other lifecycle events to ever run. this has reliably happened every time i try to upgrade Vite past v5i've set breakpoints in the actual afterNavigate function and I'm not seeing any callbacks register despite them clearly being setup in code (and working previously).
cannot reproduce this behavior in a new repo, so i guess i'm wondering how i could troubleshoot svelte not registering these callbacks after an upgrade? this is a very large established sveltekit app so its not trivial to setup a reproduction
other notes:
bun.lock
file (using Bun)Beta Was this translation helpful? Give feedback.
All reactions