Skip to content

$store syntax works in markup but not in snippets #2922

@timephy

Description

@timephy

Describe the bug

{#snippet _test()}
    {$lang} <!-- ❌ NOT working -->
{/snippet}

{$lang} <!-- ✅ working -->
Image

Reproduction

lang: Readable<TranslationFunctions> using typesafe-i18n

Logs

System Info

Binaries:
    Node: 24.5.0 - /usr/local/bin/node
    Yarn: 1.22.11 - /usr/local/bin/yarn
    npm: 11.5.1 - /usr/local/bin/npm
    pnpm: 10.13.1 - /usr/local/bin/pnpm
    bun: 1.3.1 - /usr/local/bin/bun
    Deno: 2.3.3 - /usr/local/bin/deno
  npmPackages:
    svelte: 5.45.8 => 5.45.8

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions