microsoft / dts-gen

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

Unexpected crash when generating definitions for module "bcoin" #141

Open thomaseizinger opened 4 years ago

thomaseizinger commented 4 years ago
~/src/github.com/comit-network/comit-rs/api_tests » yarn dts-gen input -m bcoin --dt
yarn run v1.16.0
$ /home/thomas/src/github.com/comit-network/comit-rs/api_tests/node_modules/.bin/dts-gen input -m bcoin --dt
Unexpected crash! Please log a bug with the commandline you specified.
/home/thomas/src/github.com/comit-network/comit-rs/api_tests/node_modules/dts-gen/bin/lib/run.js:125
        throw e;
        ^

TypeError: Cannot read property 'prototype' of null
    at isClasslike (/home/thomas/src/github.com/comit-network/comit-rs/api_tests/node_modules/dts-gen/bin/lib/index.js:114:19)
    at getKeysOfObject.some.k (/home/thomas/src/github.com/comit-network/comit-rs/api_tests/node_modules/dts-gen/bin/lib/index.js:47:41)
    at Array.some (<anonymous>)
    at hasCloduleProperties (/home/thomas/src/github.com/comit-network/comit-rs/api_tests/node_modules/dts-gen/bin/lib/index.js:47:31)
    at getValueTypes (/home/thomas/src/github.com/comit-network/comit-rs/api_tests/node_modules/dts-gen/bin/lib/index.js:35:37)
    at getResult (/home/thomas/src/github.com/comit-network/comit-rs/api_tests/node_modules/dts-gen/bin/lib/index.js:192:55)
    at getTopLevelDeclarations (/home/thomas/src/github.com/comit-network/comit-rs/api_tests/node_modules/dts-gen/bin/lib/index.js:129:17)
    at Object.generateModuleDeclarationFile (/home/thomas/src/github.com/comit-network/comit-rs/api_tests/node_modules/dts-gen/bin/lib/index.js:55:19)
    at Object.<anonymous> (/home/thomas/src/github.com/comit-network/comit-rs/api_tests/node_modules/dts-gen/bin/lib/run.js:58:24)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.