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
The Support of Svelte 5 is almost 100% the only problem is when I try to use {@render children()} instead of in _module.svelte files I get the following error:
Uncaught Svelte error: invalid_default_snippet
Cannot use {@render children(...)} if the parent component uses let: directives. Consider using a named snippet instead
@jakobrosenberg I am trying to replace <slot> with {@render children()} at _module.svelte of the root folder, I do it since svelte eslint warning me that is deprecated and I am trying to align all code to svelte 5 syntax
// _module.svelte
<script>
let { children } = $props();
</script>
<div class="p-4 h-full overflow-auto relative">
{@render children()}
</div>
Describe the bug
The Support of Svelte 5 is almost 100% the only problem is when I try to use {@render children()} instead of in _module.svelte files I get the following error:
Reproduction
here is a minimal reproductive example: https://github.com/fivaz/routify-svelte5
I created this repo using the npm init routify@latest and selecting "starter-basic-svelte-5"
Logs
System Info
The text was updated successfully, but these errors were encountered: