-
我安装了 Next.js. 13 版本 yarn create next-app --experimental-app 安装了 antd yarn add antd-mobile 配置了 SSR https://mobile.ant.design/zh/guide/ssr 最后就这样子 我只是一个小后端,觉得 antd 写起来很快,可以专心写产品,所以很多不懂,麻烦指导下。 是不是用的 next.js 太新导致?我可以去试一下先,不过看 GitHub Issues 没有类似的,所以顺便发下看看。 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
报错的这个部分 |
Beta Was this translation helpful? Give feedback.
-
@miracles1919 但事实上我这个是干净的 next。我卸载了 antd 后,可以打开了。 |
Beta Was this translation helpful? Give feedback.
-
https://beta.nextjs.org/docs/rendering/server-and-client-components#client-components 解决了,可以看这个 |
Beta Was this translation helpful? Give feedback.
https://beta.nextjs.org/docs/rendering/server-and-client-components#client-components
解决了,可以看这个