Closed qianyuhouse closed 1 month ago
That component is broken in SSR. Please create an issue at their repo instead (most likely its same as https://github.com/vueComponent/ant-design-vue/issues/6939). The issue is reproducible with Nuxt too.
That component is broken in SSR. Please create an issue at their repo instead (most likely its same as vueComponent/ant-design-vue#6939). The issue is reproducible with Nuxt too.
thanks
Wrapping it with <ClientOnly>
doesn't work either. My guess is their SSR style rendering thing they added in v4 has bugs. You probably can use older versions I guess or switch to client-side vite app or a different component library.
Wrapping it with
<ClientOnly>
doesn't work either. My guess is their SSR style rendering thing they added in v4 has bugs. You probably can use older versions I guess or switch to client-side vite app or a different component library.
I have tried using antd@v3 wrapped with <ClientOnly>
, but it doesn't work either. I have looked at their source code, that image Vnode is declared at the global environment and it's a constant. And Vue3 docs notes that Vnode Must Be Unique
.I don't know whether it's the cause or not.
Describe the bug
dependencies used
A custom layout in .vitepress/theme like below.
Reproduction
Steps
vitepress build docs.
Problem I face
Everything is normal at the first.But when I click the button to change the element in the page, 'Empty' component cannot be rendered.
Expected behavior
Expected.
No matter re-render times, I hope it can be rendered normal.
System Info
Additional context
No response
Validations