Not able to setup Tailwind V4 in Next.js and bootstrap project. #18932
-
I'm not able to set up tailwind v4 to my existing next.js and bootstrap project. I was able to do it with v3. To avoid classnames conflicts between tailiwnd and bootstrap i was trying to use the prefix(), but didn't worked with V4. ps: i'm not using typescript. Here are the steps i took to install it :
export default config;
Then when i started to apply classes it isn't working. the only catch is i also have another globals.scss file and many more scss file in my projects but i doubt they are causing the issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Consider providing a git repo that reproduces the issue and we can take a look for you. |
Beta Was this translation helpful? Give feedback.
Try updating
next
by running (will also need to installsass
explicitly`You should then at least see the Tailwind class being generated:
Then, to actually get things working, I would drop Sass completely and move everything into one CSS file: