Closed wighawag closed 4 years ago
This is a problem with some of the styles you're using or with a preprocessor. The preprocessed Tailwindcss.svelte component that Svelte is getting contains many styles with selectors that look something like :global(.\)~:global(neutral)
, which is invalid.
I investigate a bit more and while I could not reproduce it on svelte REPL, the following commit :
https://github.com/wighawag/svelte-css-parser-error/commit/4fae43a3801b4ed270d56c7fddac0dcad399ba49 showcase the error with valid css
That commit is the only addition I did from this REPL : https://svelte.dev/repl/c0300db9a4f944ce8fb030ae5a553c18?version=3.23.2
so it seems there is an issue with svelte-preprocess
@Conduitry do you mean that it is intended that svelte
Describe the bug svelte css parser fails to consider valid css which include backslash
Logs
from https://github.com/wighawag/a17t-svelte-test :
To Reproduce
Expected behavior should build succesfully with css from
a17t
(https://github.com/milesmcc/a17t)Stacktraces
see log above
Information about your Svelte project:
Your operating system: Windows 10
Svelte version : 3.23.2
Whether your project uses Webpack or Rollup : Rollup
Severity It block me from using css library like
a17t
so pretty severe in my opinion