:kotlinnew: 2.1.0-RC has been released! :kodee_wal...
# eap
m
K 2.1.0-RC has been released! kodee walking Read more in What’s new: https://kotlinlang.org/docs/whatsnew-eap.html.
kodee happy 4
❤️ 3
s
WasmJS compilation throws this error. Has anyone seen this ?
Copy code
> Task :web:compileProductionExecutableKotlinWasmJsOptimize FAILED
Fatal: Internal GlobalTypeRewriter build error: Heap type has an invalid supertype at index 9

* What went wrong:
Execution failed for task ':web:compileProductionExecutableKotlinWasmJsOptimize'.
> Process 'command '.../.gradle/binaryen/binaryen-version_119/bin/wasm-opt'' finished with non-zero exit value 1
m
@suresh please create a ticket: - https://kotl.in/issue
p
@suresh It is because of 'suspend fun main()'. Will be fixed soon. For now change to 'fun main()' and use explicit coroutine scope. For reference: https://kotlinlang.slack.com/archives/CDFP59223/p1729083672166659?thread_ts=1729083672.166659&cid=CDFP59223
thank you color 1
👍 1