What is the currently required NodeJS version for ...
# webassembly
c
What is the currently required NodeJS version for
wasmJs
? I don't see it mentioned on https://kotlinlang.org/docs/wasm-overview.html
From previous messages here, I understood that anything above 22.0.0 should be fine, but with 22.1.0 I get:
Copy code
.gradle/nodejs/node-v22.1.0-linux-x64/bin/node: bad option: --experimental-wasm-gc
e
node enabled wasmgc and removed the option
c
How can I tell the Kotlin plugin not to use that option, then? It's not added by anything I've written
e
probably needs a KGP change
c
What is the up-to-date minimal config to get WASMJS working, then? I'm using kotlin 2.0.0-RC1
Copy code
22.0.0-nightly202404032241e8c5b3
seems to work
a
c
This seems promising, but
:wasmJsNodeTest
doesn't inherit from
NodeJsExec
I modified it to:
Copy code
rootProject.the<NodeJsRootExtension>().apply {
	version = "22.1.0"
}

tasks.withType(NodeJsExec::class) {
	nodeArgs.remove("--experimental-wasm-gc")
}

tasks.withType(KotlinJsTest::class) {
	nodeJsArgs.remove("--experimental-wasm-gc")
}
but it still fails
KotestJsTest.nodeJsArgs
is empty in my case, so I guess it it set somewhere else?