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: Whitespace before the closing brace of {#snippet} will throw a parse error. #12156

Closed
ota-meshi opened this issue Jun 23, 2024 · 0 comments · Fixed by #12159
Closed

Comments

@ota-meshi
Copy link
Member

Describe the bug

The following template throws a parse error, but previously worked:

{#snippet test(x) }
{/snippet}

It seems that even after #12144 has been applied, this issue has still not been fixed.

Reproduction

https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAEy3IQQqAIBAF0KvIb1MgtHfXOapF5AiC2dBMUYh3j6DlewUhJhK4sSAvG8FhYIaFPvxBLkpKsJD9PNZvSiM5MpMaJdH27kydcun_rFOGxbb7GCJ5OD1OqnN9AX58jWdnAAAA

Logs

Error compiling App.svelte:
Expected token }

System Info

System:
    OS: macOS 14.4.1
    CPU: (8) arm64 Apple M3
    Memory: 31.33 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.15.0 - /usr/local/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.7.0 - /usr/local/bin/npm
    pnpm: 9.4.0 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 126.0.6478.63
    Chrome Canary: 121.0.6124.0
    Safari: 17.4.1
  npmPackages:
    svelte: ^5.0.0-next.164 => 5.0.0-next.164

Severity

blocking an upgrade

@ota-meshi ota-meshi changed the title Whitespace before the closing brace of {#snippet} will throw a parse error. Svelte 5: Whitespace before the closing brace of {#snippet} will throw a parse error. Jun 24, 2024
FoHoOV pushed a commit to FoHoOV/svelte that referenced this issue Jun 27, 2024
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.

1 participant