Skip to content

Illegal invocation with snippet & action #14767

@alex-pirogov

Description

@alex-pirogov

Describe the bug

Faced TypeError: Illegal invocation when trying to implement use:action, i don't know if it is a bug or an intended behavior

Reproduction

managed to create repl: https://svelte.dev/playground/de25c600fb804678bc8915e33166a82c?version=5.14.4

Logs

No response

System Info

System:
    OS: macOS 14.4.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 155.20 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.7.0 - /opt/homebrew/bin/node
    npm: 10.8.2 - /opt/homebrew/bin/npm
    pnpm: 9.14.2 - ~/Library/pnpm/pnpm
    bun: 1.1.3 - ~/.bun/bin/bun
  Browsers:
    Chrome: 131.0.6778.109
    Safari: 17.4.1
  npmPackages:
    svelte: ^5.12.0 => 5.12.0

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