-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styles break in production when using v2.1.0+ #576
Comments
Had a quick look, it seems like the Tailwind class |
@siyosu |
Will have to investigate further, this is not easy For now, temporary fix seems to be setting security: {
removeLoggers: false
} Note: you are using Nuxt UI v3-alpha, which relies on Tailwind CSS v4-alpha |
Got it 👍🏼
Yes, it seems like it. I've tried using the v2, and it's working fine |
@vejja Just tested it, it works as expected now👍🏼 |
Hotfix released v2.1.5 |
All good now, thank you @vejja 🫡 |
Version
nuxt-security:
2.1.4
nuxt:
^3.14.1592
Reproduction Link
https://github.com/siyosu/nuxt-ui-v3
https://nuxt-ui-v3.vercel.app/
Steps to reproduce
pnpm build
pnpm preview
What is Expected?
The styles should look like the one on development
Development
Production
What is actually happening?
When previewing the built project, I noticed the styles were broken. I suspected the issue was with
@nuxt/ui
, as I'm trying out the newv3
.But after looking into their issues, I came across a related issue nuxt/ui#2738 and realized I also had a similar module added, which is the
nuxt-security
module.So I try reproduced the issue using only the
@nuxt/ui
andnuxt-security
modules both with their default config.The styles worked fine when
nuxt-security
wasn’t included or when using version2.0.0
. However, starting from version2.1.0
and above, the styles break.For now, I just decided to use version
2.0.0
This might also related to #569
The text was updated successfully, but these errors were encountered: