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

5.1.0在nextjs13中出现build error #572

Closed
tangzijun opened this issue May 18, 2023 · 12 comments
Closed

5.1.0在nextjs13中出现build error #572

tangzijun opened this issue May 18, 2023 · 12 comments

Comments

@tangzijun
Copy link

tangzijun commented May 18, 2023

5.1.0在nextjs中出现build error,回退到5.0.1后可正常build。

Type error: Property 'rev' is missing in type '{}' but required in type 'Pick<AntdIconProps, "onClick" | "onSelect" | "dir" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | ... 355 more ... | "twoToneColor">'.

image

环境:
nextjs 13.4.2
@ant-design/icons 5.1.0

@ERuseckas
Copy link

getting same issue

@abearxiong
Copy link

abearxiong commented May 22, 2023

+1. 寻常react项目打包也出错

@pavelprokes-avast
Copy link

+1

@EuphoriaCHN
Copy link

@afc163
Copy link
Member

afc163 commented May 24, 2023

Upgrade @types/react and @types/react-dom version to latest https://codesandbox.io/s/blissful-elgamal-ljhtf1?file=/src/App.tsx

@Bosseskompis
Copy link

So react 17.x isn't supported then?

@Darcrandex
Copy link

+1

1 similar comment
@michele-pinto-kensu
Copy link

+1

@xiaoqiang1999
Copy link

xiaoqiang1999 commented Jun 6, 2023

Upgrade and version to latest https://codesandbox.io/s/blissful-elgamal-ljhtf1?file=/src/App.tsx`@types/react``@types/react-dom`

✔️The problem has been resolved. Thank you very much!

@z2015
Copy link

z2015 commented Jun 7, 2023

typescript upgrade to 5.x is also required.

@sonnh58
Copy link

sonnh58 commented Jun 13, 2023

+1

@afc163 afc163 closed this as completed Jun 13, 2023
@dizefurkan
Copy link

dizefurkan commented Oct 25, 2023

I have already upgrade versions but still get error

Check out my comment for details; screenshots
#483 (comment)

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

No branches or pull requests