You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6:34 error `$page` is an illegal variable name. To reference a global variable called `$page`, use `globalThis.$page`(global_reference_invalid) svelte/valid-compile
Link to GitHub Repo with Minimal Reproducible Example
Additional comments
This happens for all stores in .svelte files. I haven't checked but the same issue might happen in .svelte.[ts|js] files.
The text was updated successfully, but these errors were encountered:
rChaoz
changed the title
Svelte 5 - $page is an illegal variable name
Svelte 5 - "$page is an illegal variable name" when using stores
May 2, 2024
rChaoz
changed the title
Svelte 5 - "$page is an illegal variable name" when using stores
Svelte 5 - "illegal variable name" when using stores
May 2, 2024
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.57.0
What version of
eslint-plugin-svelte
are you using?2.38.0
What did you do?
What did you expect to happen?
No errors.
What actually happened?
Link to GitHub Repo with Minimal Reproducible Example
Additional comments
This happens for all stores in
.svelte
files. I haven't checked but the same issue might happen in.svelte.[ts|js]
files.The text was updated successfully, but these errors were encountered: