microsoft / dts-gen

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

Generator crashed when trying to generate declaration files for google earth engine #186

Open max-zinn opened 1 year ago

max-zinn commented 1 year ago

Hi,

I just installed dts-gen globally and tried the command shown below. I also have the package @google/earthengine installed globally as the documentation on npmjs stated.

$ dts-gen -m @google/earthengine
Unexpected crash! Please log a bug with the commandline you specified.
C:\Users\*****\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\run.js:126
        throw e;
        ^

TypeError: Cannot read properties of null (reading 'prototype')
    at isClasslike (C:\Users\*****\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:110:19)
    at C:\Users\*****\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:43:41
    at Array.some (<anonymous>)
    at hasCloduleProperties (C:\Users\*****\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:43:31)
    at getValueTypes (C:\Users\*****\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:31:37)
    at getResult (C:\Users\*****\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:188:55)
    at getTopLevelDeclarations (C:\Users\*****\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:125:17)
    at Object.generateModuleDeclarationFile (C:\Users\*****\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:51:19)
    at Object.<anonymous> (C:\Users\*****\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\run.js:58:24)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)

Node.js v18.13.0

Any help is appreciated and please don't hesitate to ask further questions if any information is missing.

Best regards