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)
Arjan van Wieringen
04/11/2022, 6:12 PM
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
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