https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Arjan van Wieringen

04/11/2022, 6:11 PM
I am getting some strange Gradle issues again:
Copy code
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.
Copy code
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]

04/11/2022, 8:15 PM
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
a

Arjan van Wieringen

04/12/2022, 5:17 AM
@Anton Lakotka [JB] You rock also! Never have I experienced such direct feedback from developers. You make me lazy! Thanks again for your help
👍 1
3 Views