Closed VigneshPT closed 2 years ago
Project worked fine with antd version 3.26.18 and craco-antd 1.11.0.
3.26.18
1.11.0
Followed the migration guide by Antd to upgrade antd to 4.5.3 but got the following error when trying to compile.
4.5.3
/Users/xxx/node_modules/@ant-design/icons/lib/components/Icon.d.ts(19,78): TS2344: Type '"max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | ... 345 more ... | "wmode"' does not satisfy the constraint '"max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | ... 345 more ... | "wmode"'. Type '"translate"' is not assignable to type '"max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | ... 345 more ... | "wmode"'.
I suspected issue with @types/react: 16.8.20, but not sure if that's the problem.
@types/react: 16.8.20
Should be working now.
Project worked fine with antd version
3.26.18
and craco-antd1.11.0
.Followed the migration guide by Antd to upgrade antd to
4.5.3
but got the following error when trying to compile.I suspected issue with
@types/react: 16.8.20
, but not sure if that's the problem.