The svelte 5 compiler was complaining about the use of the $ in the variable names:
[vite-plugin-svelte] /home/damjan/projects/irclogs/svelte/node_modules/.pnpm/svelte-spa-router@3.3.0/node_modules/svelte-spa-router/Router.svelte:77:5 The $ prefix is reserved, and cannot be used for variables and imports
file: /home/damjan/projects/irclogs/svelte/node_modules/.pnpm/svelte-spa-router@3.3.0/node_modules/svelte-spa-router/Router.svelte:77:5
error during build:
CompileError: The $ prefix is reserved, and cannot be used for variables and imports
I choose _loc for now, just to see it working. Suggestions welcome.
The svelte 5 compiler was complaining about the use of the
$
in the variable names:I choose
_loc
for now, just to see it working. Suggestions welcome.