microsoft / dts-gen

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

Unexpected crash: dts-gen -m babylonjs #147

Open yuripourre opened 4 years ago

yuripourre commented 4 years ago
dts-gen -m babylonjs
Unexpected crash! Please log a bug with the commandline you specified.
/home/myusername/.nvm/versions/node/v12.13.0/lib/node_modules/dts-gen/bin/lib/run.js:125
        throw e;
        ^

TypeError: Cannot read property 'prototype' of null
    at isClasslike (/home/myusername/.nvm/versions/node/v12.13.0/lib/node_modules/dts-gen/bin/lib/index.js:109:19)
    at /home/myusername/.nvm/versions/node/v12.13.0/lib/node_modules/dts-gen/bin/lib/index.js:42:41
    at Array.some (<anonymous>)
    at hasCloduleProperties (/home/myusername/.nvm/versions/node/v12.13.0/lib/node_modules/dts-gen/bin/lib/index.js:42:31)
    at getValueTypes (/home/myusername/.nvm/versions/node/v12.13.0/lib/node_modules/dts-gen/bin/lib/index.js:30:37)
    at getResult (/home/myusername/.nvm/versions/node/v12.13.0/lib/node_modules/dts-gen/bin/lib/index.js:187:55)
    at getTopLevelDeclarations (/home/myusername/.nvm/versions/node/v12.13.0/lib/node_modules/dts-gen/bin/lib/index.js:124:17)
    at Object.generateModuleDeclarationFile (/home/myusername/.nvm/versions/node/v12.13.0/lib/node_modules/dts-gen/bin/lib/index.js:50:19)
    at Object.<anonymous> (/home/myusername/.nvm/versions/node/v12.13.0/lib/node_modules/dts-gen/bin/lib/run.js:58:24)
    at Module._compile (internal/modules/cjs/loader.js:956:30)