Closed sumuyang closed 3 years ago
升级下 React 版本 ,能支持 hooks 的。
给个复现地址吧
yijieju已解决,react版本不支持造成的,谢谢
我用的16.6.3的react也出现了这个问题,还没解决
+1
"react": "^16.8.6", "react-dom": "^16.8.6", "@ant-design/charts": "^1.0.7",
依然有问题,简单的demo都跑不通
+1
"react": "^16.8.6", "react-dom": "^16.8.6", "@ant-design/charts": "^1.0.7",
依然有问题,简单的demo都跑不通
后来有解决嘛
有解决吗?我的一值报这个错误 切换了recat版本也是无济于事 @ant-design/charts TypeError: Object(...) is not a function
有解决吗?我的一值报这个错误 切换了recat版本也是无济于事 @ant-design/charts TypeError: Object(...) is not a function
直接拷贝代码试一下,新建一个.tsx 或 .jsx 文件,不要做任何改动。
"react": "^16.12.0", "react-dom": "^16.12.0", "umi": "^3.0.16"