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
[Bug Report] Latest update broke styling for flexbox properties in Nuxt3 #3660
Comments
Hmm so even when I downgrade versions this seems to still occur sometimes. I cannot seem to pinpoint the core issue here.. |
This issue is seemingly fixed by upgrading Nuxt to the latest version |
I'm reopening this issue as I found it persists on two more of my Nuxt ecom sites, even with the latest version of Nuxt It definitely has something to do with
Screen.Recording.2024-04-05.at.1.32.01.PM.trim.720.movOddly enough, if I add another class to this element, such as Also, this is only a local environment issue. This does not occur on live (as far as I can tell). 😵💫 |
Can you provide a minimally reproducible demo? |
With last version of nuxt its actual to me too. Some apply rules like width and height + flex rules sometimes not transform to css. Or it can work in development but not in production. |
@Simon-He95 The issue is that this is extremely difficult to reproduce. It also seems to not happen within new Nuxt projects, even when I have the same config as my older projects. I have tried with two new repos to reproduce the issue locally and simply cannot do it (despite spending hours on the issue this past weekend). Perhaps I need to remove my node modules folder or uninstall/reinstall uno on my older projects? Agreed @owl1n. This definitely seems like a potential At its core, it seems that some css styles are simply not applied when using |
I also encounter broken styles, with SvelteKit. The bug was introduced in version |
@microdou are you using |
@rylanharper I checked again. Yes, there are many |
So I cannot seem to reproduce this, despite a lot of attempts on a fresh Nuxt project.. It does seem to be an |
UnoCSS version
0.58.7
Describe the bug
Upon updating Unocss to
v0.58.7
in my Nuxt3 portfolio this morning, I notice a number of styles simply no longer work. Notably flexbox properties (and sometimes borders). This does not seem to have an effect on live production.Here is a pic of a section in my portfolio in dev mode vs live - the styles have not changed at all between these two images. It seems that this issue only happens on the initial load of the page, although it can sometimes revert back to this state when I save changes on a file or component:
*These images are showing that
flex
,items-center
, andjustify-between
not being applied to these elements. Again, styles have not been changed or edited in any way. Only theunocss
version has changed.Reproduction
I can't seem to reproduce this in a Stackblitz as it seems to be local environment issue.. But here is the gist of what I have in my project, which always seems to be unstyled upon page load:
https://stackblitz.com/edit/nuxt-starter-xy4uvj?file=package.json,unocss.config.ts,app.vue,nuxt.config.ts
System Info
Nuxt
v3.11.1
Node
v18.18.2
Validations
The text was updated successfully, but these errors were encountered: