Skip to content
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

support svelte5 #2338

Closed
6643 opened this issue Apr 18, 2024 · 3 comments
Closed

support svelte5 #2338

6643 opened this issue Apr 18, 2024 · 3 comments
Labels
question A user question

Comments

@6643
Copy link

6643 commented Apr 18, 2024

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

@6643
Copy link
Author

6643 commented Apr 18, 2024

{#snippet abc()}
.....
{/snippet}

It can also result in an inability to format the code

@dummdidumm
Copy link
Member

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.

@jrmoynihan
Copy link

Make sure you have a .prettierrc file added as well!
#2383 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A user question
Projects
None yet
Development

No branches or pull requests

3 participants