-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Unknown file extension ".css" #9487
Comments
Just to clarify, do you mean it happens with Also I think #8454 will fix this. |
Yes, it happens with |
For a workaround, you could use this config: // vite.config.js
import { sveltekit } from '@sveltejs/kit/vite';
/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()],
ssr: {
noExternal: ['@fontsource/major-mono-display']
}
};
export default config; |
Describe the bug
I am not able to import
.css
-files fromnode_modules
, e. g. fontsource-fonts or tippy.js styles, etc. I've submitted a reproduction-url to a SvelteKit-project, since the problem doesn't occur if I use normal vite, only in SvelteKit and if I create a project with the following command:npm create vite-extra@latest -- --template ssr-svelte
. The error deosn't occur when building the app, but in dev-mode and preview-mode.Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-nkr8q8?file=src/routes/index.svelte
System Info
Used Package Manager
pnpm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: