Hello guys, with the latest Node.js v22 release, WasmGC is enable by default. With that said, code like:
rootProject.extensions.findByType<NodeJsRootExtension>()?.apply {
version = "v22.0.0-v8-canary20240219209428711c"
downloadBaseUrl = "<https://nodejs.org/download/v8-canary>"
}
can be removed. I’ve Node.js 22 installed:
➜ ~ node -v
v22.0.0
➜ ~ npm -v
10.5.1
But if I run my wasm target, inside
user/.gradle/nodejs
folder, I’ll find
node-v20.10.0-darwin-arm64 instead of
node-v22.0.0-darwin-arm64 which only gets installed if I specify it:
rootProject.extensions.findByType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>()?.apply {
version = "22.0.0"
}
So, which default setting (
wasmJsBrowserDevelopmentRun
?) is responsible for using Node.js v20 instead of system version?
@bashor any idea?