Replies
-
|
Has anyone solved this? I know this is not probably a tailwind issue but I would think that someone has solved this |
Beta Was this translation helpful? Give feedback.
-
|
Trick is to use the PostCSS language extension for VS Code usually: |
Beta Was this translation helpful? Give feedback.
-
|
For anyone in the future, if you are working in VSCode, you need to disable the lint rule of RECOMMENDED FIX:
here is how the file will look like in the case of .vscode > settings.json {
"scss.lint.unknownAtRules": "ignore"
}It helps you push the change in git and share the fix with the team. SECOND WAY:
Usually, it fixes the issue right away, but you can reload browser if needed. Fix: For |
Beta Was this translation helpful? Give feedback.
-
|
Thanks. It works for my Angular scss files. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you @mrfambo , this is an amazing solution. |
Beta Was this translation helpful? Give feedback.
-
|
we can also add custom data example, in setting.json add and create a custom data can also be added by extensions, so I would hope it gets added to Tailwind CSS IntelliSense extension. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Thank you the "css.lint.unknownAtRules": "ignore" in settings.json works perfectly! thank you. |
Beta Was this translation helpful? Give feedback.
-
For VueKeep in mind the type of i.e <style lang="scss">
.actions {
a{
@apply underline pr-2;
}
}
</style>As you can see above we have Note: if changes doesn't take effect immediately reload vs-code |
Beta Was this translation helpful? Give feedback.
-
|
fix, add lang in style, working me too. |
Beta Was this translation helpful? Give feedback.
-
|
The accepted solution didn't work for me in Nuxt 2. |
Beta Was this translation helpful? Give feedback.
-
"files.associations": {
"*.css": "postcss"
}, |
Beta Was this translation helpful? Give feedback.

-
just a simple vue file like this:
It warning:
Unknown at rule @applycss(unknownAtRules)at the position of@applybut it does not warning if I place
@applysection code to a css file.I had followed with the document: https://tailwindcss.com/docs/guides/vue-3-vite
I do not want to see the warning line, and how to do?
Beta Was this translation helpful? Give feedback.
For anyone in the future, if you are working in VSCode, you need to disable the lint rule of
unknownAtRules.RECOMMENDED FIX:
.vscodeat the root of your projectsettings.jsoncssorscss{}"[FILE EXTENSION OF STEP 3].lint.unknownAtRules": "ignore"here is how the file will look like in the case of
scssextension:.vscode > settings.json
{ "scss.lint.unknownAtRules": "ignore" }It helps you push the change in git and share the fix with the team.
SECOND WAY:
settings.json. It will fix the problem for you…