Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of enum entry names as types is not allowed, use enum type instead #292

Open
rusnasonov opened this issue May 21, 2020 · 1 comment
Open
Labels
compilation-failure kotlin code is generated but this code fails to be compiled critical
Milestone

Comments

@rusnasonov
Copy link

I try to write extension for VSCode on Kotlin. I generate Gradle + KotlinJS project with IDEA, add kotlin.js.experimental.generateKotlinExternals=true to gradle.properties. In build.gradle.kts add @types/vscode dependency

kotlin {
    target {
        nodejs()
    }
    sourceSets["main"].dependencies {
        implementation(kotlin("stdlib-js"))
        implementation(npm("@types/vscode", "1.45.1"))
    }
}

I get follow set of errors when build project

... /src/index.vscode.module_vscode.kt: (1723, 66): Use of enum entry names as types is not allowed, use enum type instead

Screenshot 2020-05-21 at 19 47 31

@Schahen Schahen added critical compilation-failure kotlin code is generated but this code fails to be compiled labels May 26, 2020
@Schahen Schahen added this to the 5.0.1 milestone May 28, 2020
@Schahen Schahen modified the milestones: 0.5.1, 0.5.2 Jun 5, 2020
@Schahen Schahen modified the milestones: 0.5.2, 0.5.3 Jun 13, 2020
@Schahen Schahen modified the milestones: 0.5.3, 0.5.9 Aug 10, 2020
@Schahen Schahen modified the milestones: 0.5.9, 0.5.11 Sep 7, 2020
@7Hazard
Copy link

7Hazard commented Nov 23, 2020

I hit this issue with @altv/types-client, https://github.com/altmp/altv-types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compilation-failure kotlin code is generated but this code fails to be compiled critical
Projects
None yet
Development

No branches or pull requests

3 participants