ant-design / ant-design-charts

A React Chart Library
https://ant-design-charts.antgroup.com/
MIT License
1.91k stars 362 forks source link

【问题】引用charts的时候提示Object(...) is not a function #248

Closed sumuyang closed 3 years ago

sumuyang commented 3 years ago

image image

lxfu1 commented 3 years ago

升级下 React 版本 ,能支持 hooks 的。

lxfu1 commented 3 years ago

给个复现地址吧

sumuyang commented 3 years ago

image yijieju已解决,react版本不支持造成的,谢谢

JZue commented 3 years ago

我用的16.6.3的react也出现了这个问题,还没解决

ccksfh commented 3 years ago

+1

"react": "^16.8.6", "react-dom": "^16.8.6", "@ant-design/charts": "^1.0.7",

依然有问题,简单的demo都跑不通

startgirl commented 3 years ago

+1

"react": "^16.8.6", "react-dom": "^16.8.6", "@ant-design/charts": "^1.0.7",

依然有问题,简单的demo都跑不通

后来有解决嘛

ConnectionLeve commented 3 years ago

有解决吗?我的一值报这个错误 切换了recat版本也是无济于事 @ant-design/charts TypeError: Object(...) is not a function

lxfu1 commented 3 years ago

FAQ

lxfu1 commented 3 years ago

有解决吗?我的一值报这个错误 切换了recat版本也是无济于事 @ant-design/charts TypeError: Object(...) is not a function

直接拷贝代码试一下,新建一个.tsx 或 .jsx 文件,不要做任何改动。

wansuiasdn commented 3 years ago

"react": "^16.12.0", "react-dom": "^16.12.0", "umi": "^3.0.16"