I can't run any web target on my project. jvm/andr...
# compose-web
a
I can't run any web target on my project. jvm/android/ios works great, but when i do
jsBrowserRun
or the wasm version i get
Unresolved reference 'Unit'
It's as if for the web targets it doesn't know the standard lib
j
Try with this :
kotlin.js.ir.output.granularity=whole-program // 'per-module' is the default
in gradle.properties
a
what does it do
j
It combines all the modules into one single js file. https://kotlinlang.org/docs/js-ir-compiler.html#output-mode
a
same result
o
do you have mavenLocal() repository declared in build.gradle.kts or settings.gradle.kts by any chance? If yes, try to move it below mavenCentral()
a
thanks @Oleksandr Karpovich [JB]. moving it fixed it. why though?
o
I wish I'd knew harold Is your project rather small and can be shared? The problem in reporting such an issue to kotlin is that it depends on mavenLocal state, which is just on my machine
a
it's tiny and open source. let me publish an update and ill share