@layer base
is used but no matching @tailwind base
directive is present.
#18123
-
What version of Tailwind CSS are you using? v3.4.17 What build tool (or framework if it abstracts the build tool) are you using? Vite with Postcss What version of Node.js are you using? For example: v22 What browser are you using? N/A What operating system are you using? macOS Reproduction URL https://github.com/hdransfeld/tailwind-error-reproduction Describe your issue When using Tailwind CSS v3 with PostCSS, importing a CSS file that includes a valid
This occurs even if the imported CSS file is not meant to be processed by Tailwind, and is simply using the standard CSS This makes it impossible to import any third-party CSS (or internal shared styles) that use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You could consider:
|
Beta Was this translation helpful? Give feedback.
-
@wongjn Thanks for the quick reply
In my app, I'm importing css from a
I tried to declare a function in
It only contains these information:
Any other ideas? |
Beta Was this translation helpful? Give feedback.
The problem seems to stem from the fact that you are combining Tailwind CSS v3 and v4 at the same time.
You can rename the
@layer base
to something else if you split up the@import "tailwindcss";
import. https://tailwindcss.com/docs/preflight#disabling-preflightE.g.: