Kotlin / dukat

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

TypeError: Cannot read properties of undefined (reading 'kind') #508

Open xian opened 1 year ago

xian commented 1 year ago

šŸ•— Version

0.5.8-rc.4

šŸ’» Code or Package Name

ace-builds

šŸ™ Actual behavior

  TypeError: Cannot read properties of undefined (reading 'kind')
      at Object.isModuleBlock (.../build/js/node_modules/typescript/lib/typescript.js:11765:21)
      at AstConverter.convertModuleBody (.../build/js/node_modules/dukat/lib/converter.js:1400:16)
      at AstConverter.convertModule (.../build/js/node_modules/dukat/lib/converter.js:1423:21)
      at AstConverter.<anonymous> (.../build/js/node_modules/dukat/lib/converter.js:1331:37)
      at step (.../build/js/node_modules/dukat/lib/converter.js:357:23)
      at Object.next (.../build/js/node_modules/dukat/lib/converter.js:338:53)
      at step (.../build/js/node_modules/dukat/lib/converter.js:342:139)
      at Object.next (.../build/js/node_modules/dukat/lib/converter.js:338:53)
      at Function.from (<anonymous>)
      at AstFactory.createModuleDeclaration (.../build/js/node_modules/dukat/lib/converter.js:1807:53)

šŸ™‚ Expected behavior

Should generate Kotlin stubs for the package.