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
I'd say this is a Vite bug because instead of transforming and replacing just the import.meta.glob('./*') part with an object, it's looking at the whole expression generated by Svelte to coerce the object to a string.
You can file an issue upstream with a simplified repro without SvelteKit and as a workaround, you can use a comma operator like {(0,import.meta.glob("./*"))} to force svelte to include the parens and get Vite to parse the glob import in isolation.
Describe the bug
The following errors
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-khnpjr?file=src%2Froutes%2F%2Blayout.svelte&terminal=devr
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: