I'm adding the wasmJs target to a project and I'm ...
# webassembly
a
I'm adding the wasmJs target to a project and I'm running into an error when trying the
wasmJsNodeRun
task. It's odd, because
wasmJsNodeTest
works (after applying the node canary workound from KT-63014). Here's the error:
Copy code
node:internal/process/esm_loader:48
      internalBinding('errors').triggerUncaughtException(
                                ^
Exception [WebAssembly.Exception] {}

Node.js v21.0.0-v8-canary2023091837d0630120
Has anyone run into that before? Searching YouTrack doesn't turn anything up.
e
Maybe you need a more recent nodejs canary?
a
Good idea, but unfortunately most node canaries don't publish artifacts for all platforms, so I can't use them.
21.0.0-v8-canary20231019bd785be450
is that most recent canary that does, and that exhibits the same issue.
e
I'm pretty sure I used one from 22.0 across Linux , macos, and Windows, but I'm not 100% sure.
a
well, if that's the case, let me know the version. I greped through every v22 entry on https://nodejs.org/download/v8-canary and didn't see any with windows binaries.
Actually, switching to nightly instead of canary there are newer versions with windows support. Using the version from https://github.com/Kotlin/kotlin-wasm-examples/blob/1b007347bf9f8a1ec3d420d30de1815768d5df02/nodejs-example/build.gradle.kts#L22 still exhibits the same error, though.