Closed GoldTest closed 2 years ago
I am having the same issue trying to publish a KMP library targeting Compose for Desktop / Android / Web.
But adding Web target (js(IR) { ...}
does not compile.
@GoldTest Did you find anything ?
Guys, do you have a reproducer somewhere?
Hi, I just pushed a branch here https://github.com/Kodein-Framework/Kodein-DI/tree/compose-web-reproducer
running ./gradlew :framework:compose:kodein-di-framework-compose:jsJar
fails.
I just added the following target, so maybe I am wrong:
js(IR) {
browser()
}
@akurasov even a simpler one https://github.com/romainbsl/compose-kmp-web-reproducer
just run ./gradlew build
Removing foundation
from the common part resolved the issue for me. I do not need it in my common anyway.
Same issue as #1320
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
When i add these in the common module build.gradle file ,idea cannot identify the project file
android() jvm("desktop") js(IR) { browser() binaries.executable() }
I removed the js(IR) config,and build a project named web,dependent on the common project. When i run the jsBrowserRun or jsBrowserWebpack got these error,but can use the func in the common project. `Could not determine the dependencies of task ':web:jsBrowserProductionWebpack'.