ant-design / ant-design-icons

⭐ Ant Design SVG Icons
https://ant.design/components/icon/
MIT License
940 stars 577 forks source link

5.1.0在nextjs13中出现build error #572

Closed tangzijun closed 1 year ago

tangzijun commented 1 year ago

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 commented 1 year ago

getting same issue

abearxiong commented 1 year ago

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

pavelprokes-avast commented 1 year ago

+1

EuphoriaCHN commented 1 year ago

+1,demo:https://codesandbox.io/s/compassionate-monad-s8t9d6?file=/src/App.tsx

afc163 commented 1 year ago

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

Bosseskompis commented 1 year ago

So react 17.x isn't supported then?

Darcrandex commented 1 year ago

+1

michele-pinto-kensu commented 1 year ago

+1

xiaoqiang1999 commented 1 year ago

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 commented 1 year ago

typescript upgrade to 5.x is also required.

sonnh58 commented 1 year ago

+1

dizefurkan commented 8 months ago

I have already upgrade versions but still get error

Check out my comment for details; screenshots https://github.com/ant-design/ant-design-icons/issues/483#issuecomment-1779061345