I tried to install ant design charts but I get the following error:
./node_modules/@antv/algorithm/es/gaddi.js
Attempted import error: '__spreadArray' is not exported from 'tslib'.
I get 0 warnings. the steps I have done:
npm install @ant-design/charts
npm install tslib --save
npm audit fix
npm react update
npm i typescript
I tried like 3 times reinstalling these, but none of them solved my problems. Any idea what's wrong and how can I solve it?
Apparently by installing the latest tslib package worked for me:
npm install tslib@latest --save