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

Comments are not allowed next to {#snippet children()} #13865

Closed
rChaoz opened this issue Oct 24, 2024 · 0 comments · Fixed by #13936
Closed

Comments are not allowed next to {#snippet children()} #13865

rChaoz opened this issue Oct 24, 2024 · 0 comments · Fixed by #13936
Assignees
Labels

Comments

@rChaoz
Copy link
Contributor

rChaoz commented Oct 24, 2024

Describe the bug

Comments directly under a component should be considered whitespace when the children snippet is present.

Reproduction

<Child>
  <!-- I'm just a poor comment -->
  {#snippet children()}
    The content
  {/snippet}
</Child>

https://svelte.dev/playground/fbf3c391ea664ffd97383a7b717d4dc4?version=5.1.0

Logs

Cannot use explicit children snippet at the same time as implicit children content. Remove either the non-whitespace content or the children snippet block (snippet_conflict)

Severity

not even an annoyance

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

Successfully merging a pull request may close this issue.

2 participants