Skip to content

Svelte 5: The $bindable rune is only available inside .svelte and .svelte.js/ts files #11173

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

Closed
rob-balfre opened this issue Apr 14, 2024 · 1 comment · Fixed by #11181
Closed
Milestone

Comments

@rob-balfre
Copy link
Contributor

Describe the bug

If you accidentally omit the function parentheses on $bindable you get the wrong error message. Led to a few minutes of confusion!

Reproduction

https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAE0WMwQoCIRRFf0UeLQoG2psz0KafyBbj-IYERx_6DEL897AJWp7DPbfC6jxmkPcKYd4QJFyJYAB-U4f8Qs8IA-RY0tKNyktyxJMOmj2yqMIU5hjEKA7GBTsbj6J1ohQpH08XHdT5HwX12_ex5KfLY91N-37eYuzBriYYYIvWrQ4tSE4F26N9APYKwD-0AAAA

Logs

No response

System Info

System:
    OS: macOS 14.4.1
    CPU: (8) arm64 Apple M1
    Memory: 93.30 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
    pnpm: 8.15.7 - ~/pnpm/pnpm
    bun: 1.0.0 - ~/.bun/bin/bun
  Browsers:
    Chrome: 123.0.6312.122
    Firefox Nightly: 124.0a1
    Safari: 17.4.1
    Safari Technology Preview: 17.4
  npmPackages:
    svelte: ^5.0.0-next.103 => 5.0.0-next.103

Severity

annoyance

@harrisi
Copy link

harrisi commented Apr 15, 2024

This happens for all runes (or should - one is missing). Minimal reproduction.

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.

3 participants