Skip to content
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:第一次进入项目时,部分样式并不生效,刷新页面才全部样式生效 #1565

Closed
LeslieLiangLiang opened this issue Sep 7, 2022 · 14 comments

Comments

@LeslieLiangLiang
Copy link

No description provided.

@LeslieLiangLiang LeslieLiangLiang changed the title BUG:第一次进入项目时,样式并不生效,刷新页面才生效 BUG:第一次进入项目时,部分样式并不生效,刷新页面才全部样式生效 Sep 7, 2022
@sudongyuer
Copy link
Member

能提供最小复现么?

@sudongyuer
Copy link
Member

我感觉像 vite的问题,你尝试升级一下vite试试呢

@pany-ang
Copy link

这个项目的开发环境,能直接复现这个问题 https://github.com/un-pany/v3-admin-vite

@LeslieLiangLiang
Copy link
Author

这个项目的开发环境,能直接复现这个问题 https://github.com/un-pany/v3-admin-vite

打包后还会存在这个问题吗?

@pany-ang
Copy link

这个项目的开发环境,能直接复现这个问题 https://github.com/un-pany/v3-admin-vite

打包后还会存在这个问题吗?

暂时没发现打包后有任务问题

@lainbo
Copy link

lainbo commented Sep 15, 2022

I also have this problem, the difference is that my projects tend to happen after pnpm i

@harrytran998
Copy link

I have the same problem with NextJs project 😆 - Hope that can fix

@sudongyuer
Copy link
Member

Not resolved

@yuguaa
Copy link

yuguaa commented May 6, 2023

在vue2项目中同样出现了

@Jiang1996
Copy link

webpack的vue2项目中遇到了类似问题,首次加载unocss样式不生效,修改了unocss样式之后热重载样式才出来,有类似问题的解决方法或者思路吗

@harwinvoid
Copy link

是不是用了啥多线程编译的插件?

@YuFengjie97
Copy link

我也遇到了,刷新一下就好了。难道unocss的类样式是异步编译的?

@yuguaa
Copy link

yuguaa commented Jan 25, 2024

我也遇到了,刷新一下就好了。难道unocss的类样式是异步编译的?

我投向了tailwindcss

@Simon-He95
Copy link
Contributor

能提供一下复现的最小demo吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants