Closed peter-jerry-ye closed 3 months ago
Seeing similar behavior node 20, same packages, Windows (in-case it's OS-specific).
This could be due to the npm deduping logic moving the install URL to ../../../node_modules/@bytecodealliance/preview2-shim
effectively.
We should update this codepath to do a node_modules
backtracking search for the folder name in this way at this point in the code.
Alternatively a local install of Jco may fix this.
PRs very very welcome.
Hi,
I have both
@bytecodealliance/preview2-shim
and@bytecodealliance/jco
installed withnpm install
.When I run
npx jco serve xxx.wasm
, I got the following error:It seems that the
import.meta.url
here: https://github.com/bytecodealliance/jco/blob/3946278b4471961f2d3a6b80576097996472bc07/src/cmd/run.js#L88 gives me the path to thenode_modules/@bytecodealliance/jco/src/cmd/run.js
Versions: