You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first launch, css classes used in nuxt ui components are not correctly taken into account.
It's necessary to restart a second time the app to have the correct display
The bug is present since the version 6.12.0 of nuxtjs/tailwindcss. Maybe some effect of the First Class HMR.
From the root project path, launch the following command :
# Clear the build
./scripts/CleanProject.bash
# Install and prepare
pnpm i; pnpm run dev:prepare
# Launch the appcd apps/mmi-order-front-office
pnpm run dev
The tailwind classes used in apps and modules are correctly displayed but the tailwind classes defined in the nuxt-ui components are not taken into account.
Stop and restart the server
pnpm run dev
All tailwind classes are correctly taken into account.
The problem is present too when building the prod version with pnpm run build
The problem seems to happens when using nuxt ui in a nuxt module. Please, have you any ideas, to solve this problem.
Thank you
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Version
v2.18.6
Reproduction
https://github.com/guirak/NuxtUiTailwindContentPurgedAtFirstLaunch
Description
Hello,
I'm having a important nuxt ui mono repo project and I'm encountering problems with nuxt/ui since version 6.12.0 of @nuxtjs/tailwindcss.
I was forced to stay in an old version of nuxt/ui to don't have the problem :
What happens ?
At first launch, css classes used in nuxt ui components are not correctly taken into account.
It's necessary to restart a second time the app to have the correct display
The bug is present since the version 6.12.0 of nuxtjs/tailwindcss. Maybe some effect of the First Class HMR.
Step to reproduce
The code at the following link is a minimal reproduction of my project structure : https://github.com/guirak/NuxtUiTailwindContentPurgedAtFirstLaunch
The tailwind classes used in apps and modules are correctly displayed but the tailwind classes defined in the nuxt-ui components are not taken into account.
All tailwind classes are correctly taken into account.
The problem is present too when building the prod version with pnpm run build
The problem seems to happens when using nuxt ui in a nuxt module. Please, have you any ideas, to solve this problem.
Thank you
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: