-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
New error for vite-plugin-fonts starting with SvelteKit 1.11.0 #9442
Comments
Ah, interesting. This possibility came up in #9323 but we decided to apply @bluwy what approach would you recommend here? |
SvelteKit needs to inject the I'd say if it wants to participate in Vite's pipeline, it should probably support those special queries, so it's probably not a breaking change in SK (?). If we do want to find a middle ground for now, maybe we can try to re-load without the |
Hello! I'm about to update the plugin using unplugin, so it will work on different environments! I've created a playground with sveltekit here: https://github.com/stafyniaksacha/vite-plugin-fonts/tree/unplugin/examples/sveltekit @brev could you give a try inside the repo if your issue is still present? |
I just released https://www.npmjs.com/package/unplugin-fonts You can now do Feel free to open an issue on https://github.com/cssninjaStudio/unplugin-fonts/ and close this one ! |
Awesome @stafyniaksacha! Thanks for the update on your end. I'll close this for now then. If there's indeed an issue in SvelteKit we could re-open this again as well. |
Thanks @stafyniaksacha (and everyone else), |
Describe the bug
With
@sveltejs/kit@1.11.0
and above,npm run dev
is throwing a new Internal Server Error regardingvite-plugin-fonts
:The error disappears when downgrading to
@sveltejs/kit@1.10.0
.vite-plugin-fonts
by @stafyniaksacha has been working perfectly until now, stable without changes for several months. I'm using the local/custom font mode, which uses the virtual filesystem (import 'virtual:fonts.css'
).As a possible culprit, #9323 was part of
1.11.0
and mentions?inline
(which is seen in my error message).Reproduction
https://github.com/brev/issue-sveltekit-vite-font-error
This is a
create-svelte
skeleton, with the following changes:vite-plugin-fonts
vite.config.ts
to call the fonts plugin.src/lib/assets/
dir.src/routes/+layout.svelte
Logs
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: