Skip to content
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

[svelte 5] $page is an illegal variable name #11395

Closed
frederikhors opened this issue Apr 30, 2024 · 1 comment
Closed

[svelte 5] $page is an illegal variable name #11395

frederikhors opened this issue Apr 30, 2024 · 1 comment

Comments

@frederikhors
Copy link

frederikhors commented Apr 30, 2024

Describe the bug

Using svelte 5 v119 in a big Svelte 4 project I'm getting this strange warning:

`$page` is an illegal variable name. To reference a global variable called `$page`, use `globalThis.$page`(global_reference_invalid) eslintsvelte/valid-compile

I'm importing it normally:

<script lang="ts">
	import { page } from '$app/stores';
</script>

Why?

@AdrianGonz97
Copy link

This is an eslint-plugin-svelte specific issue: sveltejs/eslint-plugin-svelte#652

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale Apr 30, 2024
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

No branches or pull requests

3 participants