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

Svelte 5: Allow @const inside an snippet block #9897

Closed
kauderk opened this issue Dec 12, 2023 · 1 comment · Fixed by #9904
Closed

Svelte 5: Allow @const inside an snippet block #9897

kauderk opened this issue Dec 12, 2023 · 1 comment · Fixed by #9904

Comments

@kauderk
Copy link

kauderk commented Dec 12, 2023

Describe the problem

Svelte 5 preview introduced {#snippet ... } {/snippet} block but previous functionality like the {@const} tag is missing. You'll get the following error:

{@const} must be the immediate child of {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, <svelte:fragment> or <Component>

Describe the proposed solution

Follow up with this issue #7241

Alternatives considered

None

Importance

would make my life easier

@rmunn
Copy link
Contributor

rmunn commented Dec 13, 2023

I suggest putting "Svelte 5:" at the start of the issue title so the maintainers will more immediately notice that it's Svelte 5-related.

@kauderk kauderk changed the title Allow {@const} inside an snippet block Svelte 5: Allow @const inside an snippet block Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants