Closed zhihengGet closed 5 months ago
This is because the component is run on the server where requestAnimationFrame is not defined...if you try to wrap everything in onMount
or $effect
it'll work
This is because the component is run on the server where requestAnimationFrame is not defined...if you try to wrap everything in
onMount
or$effect
it'll work
Thanks! Most likely will solve my problem.
but since this is working in sveltekit+svelte4 and it is just initializing the tween value in server side, i don't think it should call requestAnimationFrame
I think it is still a bug.
Adding this to the 5.0 milestone for the team to take a look at. At the very least we'd need to mention it in the breaking changes section and migration guide
Describe the bug
below code works on svelte 4 and svelte 5
but not sveltekit with svelte 5
svelte 5
Reproduction
included
Logs
No response
System Info
Severity
cant run my code :(