Webpack configuration with postcss and tailwind fails #21263
Unanswered
thaoms
asked this question in
Component Testing
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Whenever I use the Tailwind @apply directive I get an error
The bg-charcoal-color-400 class does not exist. If you're sure that bg-charcoal-color-400 exists, make sure that any @import statements are being properly processed before Tailwind CSS sees your CSS, as @apply can only be used for classes in the same CSS tree.
The same webpack config works fine for a regular production build AND for Storybook. So it's definitely something with cypress component testing.
I've been trying to fix this for days, so if anyone has an idea?
plugins/index.js
plugins/preprocess.js
Webpack.config.js
index.ts
postcss.config
Beta Was this translation helpful? Give feedback.
All reactions