ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.53k stars 2.38k forks source link

Next.js compatibility feedback collection #6250

Open miracles1919 opened 1 year ago

miracles1919 commented 1 year ago

Version of antd-mobile

latest

Operating system and its version

No response

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

English Description

Before All

If you meet the problem, please make sure:

  1. Upgrade antd-mobile & next to latest version
  2. For compile issue, please try next canary version. Some problem may be fixed but not released yet

What to leave message in this issue?

  1. leave Codesandbox url or Github repo for minimal reproduction. a. minimal reproduction is very important to us for fast dig problem
  2. Tell what reproduce step to do (e.g. npm run build)
  3. Tell what behavior is wrong (e.g. Button style missing on the page. Please check /xxx/xxx page)

中文描述

在开始前

如果你遇到任何问题,请优先:

  1. 升级 antd-mobile 与 next 的版本。
  2. 对于编译问题,可以尝试使用 next 的 canary 版本。一些编译问题已经解决但是尚未发布。

这个 issue 下我该做什么?

  1. 留下 Codesandbox 或 Github repo 的 最小重现 地址 a. 最小重现 非常重要,复杂的代码会难以找出问题所在
  2. 告知重现步骤 (例如:执行 npm run build)
  3. 告知非预期的表现 (例如:在 /xxx/xxx 页面中,Button 的样式丢失了)

Relevant log output

No response

Ruler1020730 commented 4 months ago

"antd-mobile": "^5.34.0", "next": "14.1.0",

Ellipsis 组件在 nextjs 中使用 App router会在页面 初始渲染时 全部显示,闪烁后隐藏

conversun commented 4 months ago

nextjs >= 14.0.4 build 报错: Collecting page data ..TypeError: (0 , n.createUpdateEffect) is not a function

ikangjie commented 2 months ago

nextjs >= 14.2.3 在pages router下使用依旧出现这个问题

conversun commented 3 weeks ago

nextjs >= 14.0.4 build 报错: Collecting page data ..TypeError: (0 , n.createUpdateEffect) is not a function

截屏2024-06-30 11 01 22

nextjs 14.2.4, antd 5.37.0 仍旧有该问题