-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite 4.1+ causes block.l is not a function
error on HMR during dev
#223
Comments
Can confirm, completely breaking |
We need the source of Source: nolimits4web/swiper#4013 Adding |
+1 |
1 similar comment
+1 |
Still broken. I tried adding |
My current workaround is wrapping the <OnMount>
<ValidationMessage for="fruits" let:messages>
...
</ValidationMessage>
</OnMount>
<!-- Mounts a component when the DOM is ready. Useful for intro animations -->
<script>
import { onMount } from 'svelte';
let mounted = false;
onMount(() => {
mounted = true;
});
</script>
{#if mounted}
<slot />
{/if} |
@TimoWilhelm Thank you for this! |
Probably fixed by #237 Please check :) |
@pablo-abc I think we can close this issue. I been testing |
Describe the bug
Upgrading to vite 4.1+ from 4.0.4 causes HMR to not work with pages with
ValidationMessage
component with the error[HMR][Svelte] Unrecoverable HMR error in <Root>: next update will trigger a full reload
andblock.l is not a function
and crashes.Seems to be due to but i am not too sure:
Currently i have to resolve to not upgrading vite to 4.1+
Which package/s are you using?
felte (Svelte)
Environment
To reproduce
No response
Small reproduction example
No response
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: