When upgrading Compose to 1.9.0-beta01 and Kotlin ...
# compose-web
r
When upgrading Compose to 1.9.0-beta01 and Kotlin 2.2.20-Beta2 my compose runtime based project no longer works on JS target (works on Wasm). The runtime error in the browser console in 🧵
Copy code
Uncaught TypeError: _this__u8e3s4.get_low_mx1tz7_k$ is not a function
    rotateLeft webpack-internal:///./kotlin/kotlin-kotlin-stdlib/kotlin/NumbersJs.mjs:52
    start webpack-internal:///./kotlin/androidx-compose-runtime-runtime/androidx/compose/runtime/Composer.mjs:1351
    startGroup webpack-internal:///./kotlin/androidx-compose-runtime-runtime/androidx/compose/runtime/Composer.mjs:1157
    startRoot webpack-internal:///./kotlin/androidx-compose-runtime-runtime/androidx/compose/runtime/Composer.mjs:1084
    doCompose webpack-internal:///./kotlin/androidx-compose-runtime-runtime/androidx/compose/runtime/Composer.mjs:2358
    composeContent_afstk3_k$ webpack-internal:///./kotlin/androidx-compose-runtime-runtime/androidx/compose/runtime/Composer.mjs:4181
    composeContent_i2c223_k$ webpack-internal:///./kotlin/androidx-compose-runtime-runtime/androidx/compose/runtime/Composition.mjs:1532
    composeInitial_gbzd59_k$ webpack-internal:///./kotlin/androidx-compose-runtime-runtime/androidx/compose/runtime/Recomposer.mjs:3154
    composeInitial webpack-internal:///./kotlin/androidx-compose-runtime-runtime/androidx/compose/runtime/Composition.mjs:183
    setContent_fpn0d7_k$ webpack-internal:///./kotlin/androidx-compose-runtime-runtime/androidx/compose/runtime/Composition.mjs:1436
Some kind of compiler error? Version incompatibility? Any ideas?
j
I assume you're enabling ES 2015? It should be fixed in 2.2.0-RC where enabling ES 2015 will no longer enable bigint, since that's actually an ES 2020 feature https://youtrack.jetbrains.com/issue/KT-79644
r
Yes, I am. Thanks for info.