Hey, I am getting some straight errors during JS I...
# compiler
h
Hey, I am getting some straight errors during JS IR compiling, but how do you get the causing file?
Copy code
java.lang.IllegalStateException: IrSimpleFunctionSymbolImpl is already bound: FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> () returnType:<Uninitialized>
	at org.jetbrains.kotlin.ir.symbols.impl.IrBindableSymbolBase.bind(IrPrivateSymbolBase.kt:64)
Gradle file:
Copy code
import java.util.*

plugins {
    kotlin("multiplatform") version "1.5.21"
    id("org.jetbrains.compose") version "1.0.0-alpha4-build321"
}

group = "app.softwork"

repositories {
    mavenCentral()
    maven(url = "<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
}

kotlin {
    js(IR) {
        browser {
            binaries.library()
        }
    }

    explicitApi()

    sourceSets {
        commonTest {
            dependencies {
                implementation(kotlin("test"))
            }
        }
        val jsMain by getting {
            dependencies {
                api("app.softwork:kotlinx-uuid-core:0.0.9")
                api(compose.web.core)
                api(npm("bootstrap", "5.1.0"))
                api(npm("@popperjs/core", "2.9.3"))
            }
        }
    }
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile>().configureEach {
    kotlinOptions {
        verbose = true
    }
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
    kotlinOptions {
        verbose = true
    }
}

// <https://youtrack.jetbrains.com/issue/KT-48273>
rootProject.plugins.withType(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin::class.java) {
    rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().versions.webpackDevServer.version =
        "4.0.0-rc.0"
}
Command:
compileProductionLibraryKotlinJs --debug -Pkotlin.verbose=true
d
Please file an issue https://kotl.in/issue
🆗 1
h
But it is not possible to get more outputs?
d
It's better to ask in YT ticket from dev who is responsible for JS/IR
h
Alright 😄