Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
558 stars 42 forks source link

Cannot read property 'length' of undefined #491

Open rantianhua opened 2 years ago

rantianhua commented 2 years ago
❯ npm install -g dukat
/usr/local/bin/dukat -> /usr/local/lib/node_modules/dukat/bin/dukat-cli.js
+ dukat@0.5.8-rc.4
added 3 packages from 3 contributors in 13.756s
❯ dukat bignumber.d.ts
unresolved exception
TypeError: Cannot read property 'length' of undefined
    at StringScriptSnapshot.getLength (/usr/local/lib/node_modules/dukat/node_modules/typescript/lib/typescript.js:107932:34)
    at Object.getSnapshotText (/usr/local/lib/node_modules/dukat/node_modules/typescript/lib/typescript.js:109796:37)
    at Object.createLanguageServiceSourceFile (/usr/local/lib/node_modules/dukat/node_modules/typescript/lib/typescript.js:139016:59)
    at acquireOrUpdateDocument (/usr/local/lib/node_modules/dukat/node_modules/typescript/lib/typescript.js:115387:37)
    at Object.acquireDocumentWithKey (/usr/local/lib/node_modules/dukat/node_modules/typescript/lib/typescript.js:115360:20)
    at getOrCreateSourceFileByPath (/usr/local/lib/node_modules/dukat/node_modules/typescript/lib/typescript.js:139332:41)
    at Object.getOrCreateSourceFile [as getSourceFile] (/usr/local/lib/node_modules/dukat/node_modules/typescript/lib/typescript.js:139284:24)
    at findSourceFile (/usr/local/lib/node_modules/dukat/node_modules/typescript/lib/typescript.js:101513:29)
    at /usr/local/lib/node_modules/dukat/node_modules/typescript/lib/typescript.js:101390:85
    at getSourceFileFromReferenceWorker (/usr/local/lib/node_modules/dukat/node_modules/typescript/lib/typescript.js:101357:34)