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:fragment support (Svelte 3.35.0) #99

Closed
CherryDT opened this issue Mar 14, 2021 · 1 comment
Closed

svelte:fragment support (Svelte 3.35.0) #99

CherryDT opened this issue Mar 14, 2021 · 1 comment

Comments

@CherryDT
Copy link
Contributor

Using <svelte:fragment> gives the error Valid <svelte:...> tag names are svelte:head, svelte:options, svelte:window, svelte:body, svelte:self or svelte:component.

<svelte:fragment> is new in Svelte 3.35.0 and unfortunately they didn't add it to the docs yet even though it's the only way to replace duplicate slots which turned into an error in the same update (see sveltejs/svelte#6061)

For more info, see the RFC and its comments - note that it was originally called <svelte:slot> but in the final version it was changed to <svelte:fragment>.

@CherryDT
Copy link
Contributor Author

Never mind, turns out this error comes from Svelte's own compiler and I had to reload the window in VSCode for your plugin to pick up the new Svelte version.

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

No branches or pull requests

1 participant