-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Self-service
- I'd be willing to implement a fix
Describe the bug
Error: Unknown file extension ".wasm" when --experimental-wasm-modules
https://nodejs.org/api/esm.html#wasm-modules
To reproduce
$ node --experimental-wasm-modules ./x.mjs
(node:676955) ExperimentalWarning: Importing WebAssembly modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
42
$ yarn --version
4.6.0
$ yarn node --experimental-wasm-modules ./x.mjs
node:internal/modules/run_main:104
triggerUncaughtException(
^
Error: Unknown file extension ".wasm" for /path/to/dist/hello.wasm
at getFileFormat (file:///path/to/.pnp.loader.mjs:1492:13)
at load$1 (file:///path/to/.pnp.loader.mjs:1523:18)
at nextLoad (node:internal/modules/esm/hooks:748:28)
at Hooks.load (node:internal/modules/esm/hooks:385:26)
at MessagePort.handleMessage (node:internal/modules/esm/worker:199:24)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
Node.js v23.7.0
Environment
node 23.7.0
yarn 4.6.0
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working