Arjan van Wieringen

    Arjan van Wieringen

    5 months ago
    I am getting some strange Gradle issues again:
    Caused by: org.gradle.api.GradleException: Cannot find dukat@0.5.8-rc.4 in yarn.lock
            at org.jetbrains.kotlin.gradle.targets.js.yarn.YarnEntryRegistry.find(YarnEntryRegistry.kt:37)
            at org.jetbrains.kotlin.gradle.targets.js.yarn.YarnBasics.yarnLockReadTransitiveDependencies$resolveRecursively(YarnBasics.kt:151)
    It happens when I load another MPP module inside my project which has a
    JS { browser() }
    part in it.
    rootProject.name = "nl.avwie"
    include("dom:core")
    include("dom:examples")
    include("mvu:core") // when adding this one it crashes
    I have the repo here: https://github.com/avwie/scribbles/tree/main/kotlin If someone can see what is wrong? Because I am at a loss....
    a

    Anton Lakotka [JB]

    5 months ago
    Haha! You're rock! (discovered 2nd issue in a row) The problem is that you have two projects with the same name "core". One is
    dom:core
    another is
    mvu:core
    . That is certainly a bug on Kotlin/JS Gradle Tooling side. I've reported an issue on YT for you. So you can watch it https://youtrack.jetbrains.com/issue/KT-51942 So in your case a solution would be to rename one of the directories and update settings.gradle.kts
    Arjan van Wieringen

    Arjan van Wieringen

    5 months ago
    @Anton Lakotka [JB] You rock also! Never have I experienced such direct feedback from developers. You make me lazy! Thanks again for your help