Hi Moko looks great - and is working perfectly for...
# moko
m
Hi Moko looks great - and is working perfectly for me with Compose on JVM and Android. Unfortunately I'm not having as much luck on JS. I have a multiplatform project targeting JVM, Android, and JS. It generates these under build/generated/moko: ./jvmMain/src/com/ustadmobile/core/MR.kt ./androidMain/src/com/ustadmobile/core/MR.kt ./commonMain/src/com/ustadmobile/core/MR.kt No sign of the JS MR.kt file. I checked the example file ( https://github.com/icerockdev/moko-resources/blob/master/samples/resources-gallery/mpp-library/build.gradle.kts ) and can't see anything else that I'm supposed to add for JS specifically. On the Gradle tasks I only see jvm and android (output of running ./gradlew modulename:tasks): Moko-resources tasks -------------------- generateMRandroidMain generateMRcommonMain generateMRjvmMain I'm not using compose/WASM on JS (using React/JS). Anyone got any suggestions for how to debug / workaround this?
Self-answering this: seems to be fixed by adding an explicit dependsOn commonMain to the js target as per this thread (that was originally about JVM) https://kotlinlang.slack.com/archives/CMC5LN42W/p1692877540204679
👍 1