Kotlin / Kotlin/dukat

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

Open
#508 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
591
Forks
40
PR merge metrics
No merged PRs in 30d

Description

### 🕗 Version

0.5.8-rc.4

### 💻 Code or Package Name

[`ace-builds`](https://www.npmjs.com/package/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. (.../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 ()
at AstFactory.createModuleDeclaration (.../build/js/node_modules/dukat/lib/converter.js:1807:53)
```

### 🙂 Expected behavior

Should generate Kotlin stubs for the package.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at build/js/node_modules/dukat/lib/converter.js around AstConverter.convertModuleBody, using the reported ace-builds package and version 0.5.8-rc.4 to reproduce the TypeError. Confirm the converter handles this input and generates Kotlin stubs without the undefined-kind failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin, typescript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.