Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

duplicate "Unknown at rule @apply css(unknownAtRules)" errors in Vue.js project

I'm working on a project using Vue.js and Tailwind CSS and I get this error twice for the same line of code

Unknown at rule @apply css(unknownAtRules)

VS Code Screenshote

when using the follwing style

<style scoped>
     #home {
       @apply bg-accent-gradient;
     }
</style>

I found a soultion to add PostCSS Language Support Extensions and the following to my vscode settings

"css.lint.unknownAtRules": "ignore"

I added it but it removed one error only not both.

like image 296
Muhammad Mahmoud Avatar asked Nov 25 '25 07:11

Muhammad Mahmoud


2 Answers

Make sure you have csstools.postcss extension installed in the VScode before starting debugging the issue as other answers suggested.

like image 83
Jalal Avatar answered Nov 27 '25 00:11

Jalal


I had the same case, I went to vs code settings, searched for Unknown At Rules and select ignore there.

enter image description here

like image 41
Muhammad Gata Avatar answered Nov 26 '25 23:11

Muhammad Gata



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!