dts2hx icon indicating copy to clipboard operation
dts2hx copied to clipboard

Chart.js; Error: Reached type-depth limit

Open rb1147x opened this issue 4 years ago • 2 comments
trafficstars

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.

rb1147x avatar Jun 01 '21 19:06 rb1147x

Thanks @rb1147x, this may result in a Dynamic somewhere but otherwise types should be ok

I’ll take a look in the future

haxiomic avatar Jun 01 '21 19:06 haxiomic

same error in material-ui

npm install @material-ui/core@next @emotion/react @emotion/styled

sonygod avatar Sep 19 '21 04:09 sonygod