-
-
Notifications
You must be signed in to change notification settings - Fork 81
Doesn't support svelte 5 $bindable #222
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
This is not a reproduction. Please provide a code snippet that reproduces this. Please also state which version of Svelte you're using (make sure to upgrade to the latest) |
updated :) |
These are semver ranges - they don't actually say anything about the specific version of the compiler you're using, other than that it's at least |
Ah, here are the versions I'm using (checking node_modules) svelte: 5.0.0-next.1 |
|
5.0.0-next.1 is newer than 5.0.0-next.82 though, and has support for $bindable. I'm able to find its definition in the svelte node module code. This is what I see in the library code:
|
.1 is the very first version, it is the oldest one and did not include |
Uh oh!
There was an error while loading. Please reload this page.
The latest version of rollup-plugin-svelte currently does not recognize the $bindable rune for svelte 5.
Repro steps:
In any .svelte file:
Rollup config:
This is the config I'm using to compile my .svelte files into .js files rendered on the server.
Error:
[!] (plugin svelte) CompileError: $bindable is an illegal variable name. To reference a global variable called $bindable, use globalThis.$bindable
Dependencies:
"rollup-plugin-svelte": "^7.2.2",
"svelte": "^5.0.0-next.1",
"svelte-preprocess": "^5.1.4",
The text was updated successfully, but these errors were encountered: