dts2hx
dts2hx copied to clipboard
Chart.js; Error: Reached type-depth limit
Hello,
I've just tried using dts2hx on Chart.js and have received this error:
Error: Internal error: Reached type-depth limit, stopping further type conversions. This indicates unbound recursive type conversion
No additional information is provided and useable externs (so far) are still generated and saved.
Chart.js appears to include it's own TypeScript definitions (at least for v3.3.2) so if you try to replicate the error I installed chart.js with npm install chart.js and not @types/chart.js. In fact the @types version works just fine with no errors.
Thanks.
Thanks @rb1147x, this may result in a Dynamic somewhere but otherwise types should be ok
I’ll take a look in the future
same error in material-ui
npm install @material-ui/core@next @emotion/react @emotion/styled