coc-tailwindcss icon indicating copy to clipboard operation
coc-tailwindcss copied to clipboard

[css unknownAtRules] [W] Unknown at rule @tailwind

Open npearson72 opened this issue 3 years ago • 2 comments

Describe the bug

Here is what's in my style.css file:

@tailwind base;
@tailwind components;
@tailwind utilities;

I'm seeing the following error: [css unknownAtRules] [W] Unknown at rule @tailwind

To Reproduce I simply followed your install instructions: CocInstall coc-tailwindcss

Is there anything else I need to do?

Expected behavior I would expect not to see this error

Screenshots

Screen Shot 2021-09-21 at 1 50 27 PM

Desktop (please complete the following information):

  • OS: MacOs

npearson72 avatar Sep 21 '21 10:09 npearson72

Hi, @npearson72

"css: unknownAtRules" is a diagnostic message output from coc-css.

There is a way to ignore this message. Try adding this setting to coc-settings.json.

  "css.lint.unknownAtRules": "ignore",

As a side note, coc-css was updated the other day. This setting is only available with the latest version of coc-css, so please update coc-css as well.

yaegassy avatar Dec 27 '21 06:12 yaegassy

I have the same issue with @apply, and the coc-settings.json update does not work for me. I also had this issue before installing coc-css.

I've tried adding both of these:

"css.lint.unknownAtRules": "ignore",
"scss.lint.unknownAtRules": "ignore",

and still see the same error:

⚠ 191   @apply bg-white border text-black px-px5 pt-px2;
    1    [css unknownAtRules] [W] Unknown at rule @apply

dwoods-bond avatar Apr 20 '22 21:04 dwoods-bond