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: dts-gen -m asana #129

Open tomdee opened 5 years ago

tomdee commented 5 years ago
docker run -ti --rm node:10 bash
root@f4038b9a1450:/# npm install -g dts-gen
/usr/local/bin/dts-gen -> /usr/local/lib/node_modules/dts-gen/bin/lib/run.js
+ dts-gen@0.5.7
added 59 packages from 36 contributors in 7.214s
root@f4038b9a1450:/# npm install -g asana
+ asana@0.16.6
added 53 packages from 69 contributors in 6.587s
root@f4038b9a1450:/# dts-gen -m asana
Unexpected crash! Please log a bug with the commandline you specified.
/usr/local/lib/node_modules/dts-gen/bin/lib/run.js:130
        throw e;
        ^

TypeError: Cannot read property 'flowing' of undefined
    at BufferedReadable.get (_stream_readable.js:1035:32)
    at getProperty (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:254:30)
    at Array.map (<anonymous>)
    at getPropertyDeclarationsOfObject (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:250:25)
    at getTypeOfValue (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:237:33)
    at getResult (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:173:32)
    at getTopLevelDeclarations (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:123:17)
    at getResult (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:148:17)
    at getTopLevelDeclarations (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:123:17)
    at getResult (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:148:17)
    at getTopLevelDeclarations (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:123:17)
    at getResult (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:191:35)
    at getTopLevelDeclarations (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:123:17)
    at getResult (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:191:35)
    at getTopLevelDeclarations (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:123:17)
    at Object.generateModuleDeclarationFile (/usr/local/lib/node_modules/dts-gen/bin/lib/index.js:49:19)
root@f4038b9a1450:/#