microsoft / dts-gen

dts-gen creates starter TypeScript definition files for any module or library.
MIT License
2.44k stars 102 forks source link

Crash when generating typings for svgdom #139

Open MrManny opened 5 years ago

MrManny commented 5 years ago

While attempting to generate typings for the svgdom (0.0.20) module using dts-gen (0.5.8), the process throws a RangeError exception and states that the call stack size has been exceeded.

C:\Users\redacted\Documents\Projects\redacted>npm i -g dts-gen
C:\Users\redacted\AppData\Roaming\npm\dts-gen -> C:\Users\redacted\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\run.js
+ dts-gen@0.5.8
added 59 packages from 36 contributors in 5.344s

C:\Users\redacted\Documents\Projects\redacted>npm i -g svgdom

> core-js@2.6.9 postinstall C:\Users\redacted\AppData\Roaming\npm\node_modules\svgdom\node_modules\core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

+ svgdom@0.0.20
added 79 packages from 171 contributors in 5.728s

C:\Users\redacted\Documents\Projects\redacted>dts-gen -m svgdom
Unexpected crash! Please log a bug with the commandline you specified.
C:\Users\redacted\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\run.js:125
        throw e;
        ^

RangeError: Maximum call stack size exceeded
    at Function.getOwnPropertyNames (<anonymous>)
    at getKeysOfObject (C:\Users\redacted\AppData\Roaming\npm\node_modules\←[4mdts-gen←[24m\bin\lib\index.js:85:35)
    at getPropertyDeclarationsOfObject (C:\Users\redacted\AppData\Roaming\npm\node_modules\←[4mdts-gen←[24m\bin\lib\index.js:255:18)
    at getTypeOfValue (C:\Users\redacted\AppData\Roaming\npm\node_modules\←[4mdts-gen←[24m\bin\lib\index.js:243:33)
    at getProperty (C:\Users\redacted\AppData\Roaming\npm\node_modules\←[4mdts-gen←[24m\bin\lib\index.js:263:45)
    at Array.map (<anonymous>)
    at getPropertyDeclarationsOfObject (C:\Users\redacted\AppData\Roaming\npm\node_modules\←[4mdts-gen←[24m\bin\lib\index.js:256:25)
    at getTypeOfValue (C:\Users\redacted\AppData\Roaming\npm\node_modules\←[4mdts-gen←[24m\bin\lib\index.js:243:33)
    at getTypeOfValue (C:\Users\redacted\AppData\Roaming\npm\node_modules\←[4mdts-gen←[24m\bin\lib\index.js:223:43)
    at getProperty (C:\Users\redacted\AppData\Roaming\npm\node_modules\←[4mdts-gen←[24m\bin\lib\index.js:263:45)