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
from my understanding the issue is because i made a import testCSS from './test.css?url' and sveltkit adds a query pram import testCSS from './test.css?url=&inline=' to it
i tried to make a plain vite ts project if i add &inline= it happens the same issue so i think that sveltekit should stop to add inline query on assists let vite do the job
Logs
when i run i am getting this error
/src/routes/test.css
Internal server error: Failed to parse sourceforimport analysis because the content contains invalid JS syntax. You may need to install appropriate plugins to handle the .css?url=&inline= file format, or if it's an asset, add "**/*.css?url=&inline=" to `assetsInclude`in your configuration.
Plugin: vite:import-analysis
File: /home/projects/parilmppm.github/src/routes/test.css?url=&inline=:2:36
1 | .mdc-image-list__image-aspect-container {
2 | padding-bottom: calc(100% / 1);| ^
3 | }
System Info
I reproduced it in StackBlit Results from StackBlit
success Install finished in 1.002s
System:
OS: Linux 5.0 undefined
CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 0 Bytes / 0 Bytes
Shell: 1.0 - /bin/jsh
Binaries:
Node: 16.14.2 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 7.17.0 - /usr/local/bin/npm
npmPackages:
@sveltejs/adapter-auto: ^2.0.1 => 2.0.1
@sveltejs/kit: ^1.16.3 => 1.16.3
svelte: ^3.59.1 => 3.59.1
vite: ^4.3.5 => 4.3.5
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Sveltekit is assuming on a CSS file that is JS and throwing errors on trying to preprocess the file
Reproduction
I have a basic sveltekit v1.16.3 project with a css file like this
i have a svelte Component like this with Explicit URL Imports
why dose vite preprocess the css at all?
why is it trying to process the css as js?
i made a Stackblitz
from my understanding the issue is because i made a
import testCSS from './test.css?url'
and sveltkit adds a query pramimport testCSS from './test.css?url=&inline='
to iti tried to make a plain vite ts project if i add
&inline=
it happens the same issue so i think that sveltekit should stop to add inline query on assists let vite do the jobLogs
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: