I'm on Kotlin 1.9.22 and trying to run a wasmWasi ...
# webassembly
j
I'm on Kotlin 1.9.22 and trying to run a wasmWasi (nodejs) test with Node 21.6.1 and getting:
Copy code
CompileError: WebAssembly.Module(): supertype count of 1732 exceeds internal limit of 1 @+366
It works when I do:
Copy code
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().apply {
    //nodeVersion = "21.6.1"
    nodeVersion = "21.0.0-v8-canary202309143a48826a08"
    nodeDownloadBaseUrl = "<https://nodejs.org/download/v8-canary>"
}

tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask>().configureEach {
    args.add("--ignore-engines")
}
But wondering if there is a better way than the canary version. Or can I avoid node?
e
Until node supports the new features of WASM the Canary is the way to go