Closed tangzijun closed 1 year ago
getting same issue
+1. 寻常react项目打包也出错
+1
Upgrade @types/react
and @types/react-dom
version to latest https://codesandbox.io/s/blissful-elgamal-ljhtf1?file=/src/App.tsx
So react 17.x isn't supported then?
+1
+1
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!
typescript upgrade to 5.x is also required.
+1
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
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">'.
环境: nextjs 13.4.2 @ant-design/icons 5.1.0