25 Aug 2021 - Krona Emmanuel
So I’m trying to setup my tailwindcss to work properly and I’m constantly getting this error:
Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/styles.scss':
Error: unterminated attribute selector for type on line 632:16 of styles.scss >> .prose ol[type="A" s] { ---------------^
And I wasn’t sure why I was getting this error. But then I compared my code to the repo of the guide I was following to do this by Katie Kodes. I realized that the Katie was importing the tailwind styles into a main.css
file while I was doing it in main.scss
. So I changed my extension from .scss
to .css
Also, I found this Stack Overflow issue which was the same as mine. The guy who wrote the question answered his own question and reasoned that “this new syntax for CSS rules is not supported by libsass / sassc.” so hence the error.
Well, I tried to understand what this meant and found this:
[type="A" s]
part, maybe that was something new in the CSS Spec (I haven’t seen this syntax before). And maybe this wasn’t handled by Scss yet. However, the CSS attribute selector of the type: .prose ol[type="A" s]
have been around since 2018. These specs were last updated in 2018. So I guess it’s not that issue.Jekyll::Converters:Scss
which I guess means that its an Scss compiler, but then why would it not parse valid CSS code. Anywho, that’s as far as I’m gonna pursue this. Its late, I should be asleep by now.Edit: Nevermind I found the reason why this wasn’t working. You can read all about it here