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

nextjs 页面闪烁问题 #571

Open
litongjava opened this issue Mar 1, 2025 · 1 comment
Open

nextjs 页面闪烁问题 #571

litongjava opened this issue Mar 1, 2025 · 1 comment

Comments

@litongjava
Copy link

1,第一版使用vite+ant design x 没有出现页面首屏闪烁问题
第一版本源码和部署地址
https://github.com/litongjava/ai-translator-frontend
https://translate.mycounsellor.ai/

第二版本使用nextjs+ant deisgn x 重写
源码地址
https://github.com/litongjava/my-get-frontend/blob/singlefile/src/components/chat.tsx

1.已经抽取antd.min.css并import
2.已经导入了reset.css
3.已经使用了AntdRegistry

import "./antd.min.css"
import 'antd/dist/reset.css';  // Updated path for v5+

import {AntdRegistry} from "@ant-design/nextjs-registry";

但是首页加载时还是会出现轻微的抖动.

nextjs_ant-design-x-.mp4
@ShadyAfterCheer
Copy link

+1 我也遇到了 完全无法解决

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

No branches or pull requests

2 participants