Unknown at rule @tailwind CSS in reactjs [duplicate]
Asked Answered
D

1

46

enter image description here

cant able to resolve this error while compiling the code ..! In fact I've tried many other ways of implementation

//Index.css

@tailwind base;
@tailwind components;
@tailwind utilities;
Disputable answered 5/1, 2022 at 18:26 Comment(1)
Does this post answer your question? How to add a @tailwind CSS rule to css checker If not, can you please specify how the questions are different/distinct to help visitors understand how best to assist you?Noelnoelani
L
137

Make sure to install PostCSS Language Support, extension found in the VSCODE. That will remove the error that is displaying.

@apply rule is compatible with postCSS: https://github.com/tailwindcss/tailwindcss/issues/325

VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=csstools.postcss

Loupe answered 7/1, 2022 at 1:11 Comment(1)
This answer is outdated, PostCSS language support has since started breaking various VSCode features, color picker in CSS being one of them. Not recommended, looking at the reviews on the marketplace paints a clear pictureBasuto

© 2022 - 2024 — McMap. All rights reserved.