Describe the bug
An exception is thrown when trying to get string resources on wasmJs.
Uncaught (in promise) TypeError: x is undefined
stringLength webpack-internal:///./kotlin/kilua-examples-resources-wasm-js.uninstantiated.mjs:30
kilua-examples-resources-wasm-js.uninstantiated.mjs:26
Affected platforms
Select one of the platforms below:
Web (K/Wasm)
Versions
Kotlin 1.9.22:
Compose Multiplatform version: 1.6.0-beta01
To Reproduce
Steps and/or the code snippet to reproduce the behavior:
Describe the bug An exception is thrown when trying to get string resources on
wasmJs
.Affected platforms Select one of the platforms below:
Versions
To Reproduce Steps and/or the code snippet to reproduce the behavior:
./gradlew -t :examples:resources:wasmJsRun
Test compose resources
buttonExpected behavior No error. The
Compose Resources App
string printed in console.Additional context The application source code is here: https://github.com/rjaros/kilua/blob/main/examples/resources/src/commonMain/kotlin/main.kt It works ok when compiled to
js
target.