microsoft / dts-gen

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

Unexpected crash for module react-helmet #29

Open HaraldMuehlhoffCC opened 7 years ago

HaraldMuehlhoffCC commented 7 years ago

Just gave dts-gen a try because the react-helmet types from DefinitelyTyped aren't working properly in my React-Redux SPA.

Sady dts-gen -m react-helmet leads to:

Unexpected crash! Please log a bug with the commandline you specified.
dts-gen : C:\Users\<username>\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\run.js:109
In Zeile:1 Zeichen:1
+ dts-gen -m react-helmet
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (C:\Users\harald...\lib\run.js:109:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

        throw e;
        ^

TypeError: Cannot convert undefined or null to object
    at isClasslike (C:\Users\<username>\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:112:39)
    at getResult (C:\Users\<username>\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:135:17)
    at getTopLevelDeclarations (C:\Users\<username>\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:126:15)
    at getResult (C:\Users\<username>\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:198:33)
    at getTopLevelDeclarations (C:\Users\<username>\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:126:15)
    at getResult (C:\Users\<username>\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:152:17)
    at getTopLevelDeclarations (C:\Users\<username>\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:126:15)
    at Object.generateModuleDeclarationFile (C:\Users\<username>\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:49:17)
    at Object.<anonymous> (C:\Users\<username>\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\run.js:54:24)
    at Module._compile (module.js:570:32)