-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
next.js 下无法使用 ImageViewer.show({ image: props.src || '' }); #6782
Comments
估计是 React 19 的问题,React 19 下 react-dom 的 render 和之前版本路径不一样。antd-mobile 静态方法不支持它。 |
{ |
解决了,antd mobile 还不支持 next.js 15 和 react 18.2.0 以后的版本 |
嗯,这个 issue 我先关了哈。React 19 支持要从长计议。 |
但是出错的时候,我不是用的 19 而是 18.2.0.当然,我现在切到 18.0.0 和 next.js 14 后问题解决了。希望这个可以帮助你们定位问题 |
Version of antd-mobile
5.38.1
Operating system and its version
No response
Browser and its version
No response
Sandbox to reproduce
No response
What happened?
next.js 下无法使用 ImageViewer.show({ image: props.src || '' });本来应该正常预览图片的,但是控制台报错了
Relevant log output
The text was updated successfully, but these errors were encountered: