"@apply !important" crashes angular ssr #2366
Replies: 7 comments
-
Did you try this https://tailwindcss.com/docs/using-with-preprocessors#sass ? |
Beta Was this translation helpful? Give feedback.
-
@srcn I've just tried, didn't really help, another error
Escaping an exclamation mark is also not profitable |
Beta Was this translation helpful? Give feedback.
-
Happy to help if you can create a GitHub repo that reproduces the issue so we can easily troubleshoot. |
Beta Was this translation helpful? Give feedback.
-
I had a similar problem with applying important, ended up having to also wrap it in quotes in order for sass to properly parse it, e.g. |
Beta Was this translation helpful? Give feedback.
-
@tomhughes-invento something like that? I have no idea why it also doesn't work for me. I guess I'll make a reproduction in a couple days. |
Beta Was this translation helpful? Give feedback.
-
Have you customized the way Angular is processing sass? It seems like there's a missing sass preprocessor step there that would convert the templating syntax down to regular text before postcss attempts to format |
Beta Was this translation helpful? Give feedback.
-
Going to move this to discussions as it seems this is a configuration issue with Sass + Tailwind rather than a bug in the library. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem:
Whenever I run angular universal with
!important
appended to@apply
in scss files, it crashes my app withSassError: expected ";"
error and a log below, although I do have a semicolon in the eol. It's likely a sass-loader fault, I guess with plain css files it's all right.this.debug is not a function
appears only if the process faced into a semicolon error.As a workaround now I have to not use
@apply
with!important
.Beta Was this translation helpful? Give feedback.
All reactions