Closed 6643 closed 4 months ago
{#snippet abc()} ..... {/snippet}
It can also result in an inability to format the code
We're shipping with an earlier built-in Svelte version to support the most number of people out of the box. If you want prettier working correctly, install the latest version of prettier
and prettier-plugin-svelte
inside your project, then it will format correctly because the Svelte 5 parser will then be used which understand this syntax.
Make sure you have a .prettierrc
file added as well!
https://github.com/sveltejs/language-tools/issues/2383#issuecomment-2168396682
Description
{@render children()} Causes inability to format code
Proposed solution
{@render children()} Causes inability to format code
Alternatives
No response
Additional Information, eg. Screenshots
No response