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

support next14 and update doc #6499

Open
zhiyongsun opened this issue Dec 26, 2023 · 14 comments
Open

support next14 and update doc #6499

zhiyongsun opened this issue Dec 26, 2023 · 14 comments
Labels

Comments

@zhiyongsun
Copy link

zhiyongsun commented Dec 26, 2023

Version of antd-mobile

^5.33.2

Operating system and its version

Others

Browser and its version

chrome

Sandbox to reproduce

No response

What happened?

when i added "antd-mobile": "^5.33.2" to "next": "^14.0.3", then i imported button component, got error _ahooks.createUpdateEffect

⨯ node_modules/antd-mobile/cjs/utils/use-isomorphic-update-layout-effect.js (8:72) @ _ahooks
⨯ TypeError: (0 , _ahooks.createUpdateEffect) is not a function

Relevant log output

No response

@zhiyongsun zhiyongsun added the bug label Dec 26, 2023
@zhiyongsun zhiyongsun changed the title support next14 ann update doc support next14 and update doc Dec 26, 2023
@day-xue
Copy link
Contributor

day-xue commented Dec 26, 2023

"use client" ?

@zhiyongsun
Copy link
Author

"use client" ?

yes~

@zb201307
Copy link

解决了吗

@day-xue
Copy link
Contributor

day-xue commented Dec 29, 2023

"use client" ?

yes~

我这边是没问题的

@callmevari
Copy link

callmevari commented Jan 15, 2024

Same happen to me. Are you using the Pages router @zhiyongsun? Cause in the new App router it works fine, but I turned my code to the Pages router (due to an opened issue) and I found this antd-mobile error. Same as you, importing only the Button component.

@zhiyongsun
Copy link
Author

Same happen to me. Are you using the Pages router @zhiyongsun? Cause in the new App router it works fine, but I turned my code to the Pages router (due to an opened issue) and I found this antd-mobile error. Same as you, importing only the Button component.

yes, Pages router. app router it works

@massqeen
Copy link

Same here, using pages router in Next 14.0.4, got an error just importing Image component

@hugejile
Copy link

Page route in Next 14.1.0, antd-mobile 5.34.0, just import Button, has same error.

@conversun
Copy link

NextJS 14.1.3, 问题仍然存在
Collecting page data ..TypeError: (0 , n.createUpdateEffect) is not a function

@hugejile
Copy link

To manually install ahooks version 3.7.2 and configure the transpilePackages option to include 'antd-mobile'

@jianqiao0313
Copy link

+1

@ikangjie
Copy link

ikangjie commented May 6, 2024

我也有同样的问题

@tclxshunquan-wang
Copy link

It's time to deal with this problem

@solnishshka
Copy link

+1

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

No branches or pull requests