You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { WASI } from '@wasmer/wasi';
import { WasmFs } from '@wasmer/wasmfs';
import { argv, env } from 'node:process';
import path from 'node:path';
const wasmFs = new WasmFs();
// // Create a new WASI Instance
const wasi = new WASI({
args: argv, // Arguments passed to the Wasm Module
env: env, // Environment variables that are accessible by the Wasm Module
preopens: {
'/local': '/Users/zhushijie/Desktop/company/rust-lib-template/packages/nodejs-demo'
},
});
console.log(wasi);
$: node index.mjs
ABhAAAAcwAAAAkAAABjYXBhY2l0eSBvdmVyZmxvdwAAAIyKEAARAAAAL3J1c3RjLzI1ODViY2VhMGJjMmE5YzQyYTRiZTJjMWViYTVjNjExMzdmMmIxNjcvbGlicmFyeS9hbGxvYy9zcmMvdmVjL3NwZWNfZnJvbV9pdGVyX25lc3RlZC5ycwAAqIoQAF4AAAA7AAAAEgAAAC9ydXN0Yy8yNTg1YmNlYTBiYzJhOWM0MmE0YmUyYzFlYmE1YzYxMTM3ZjJiMTY3L2xpYnJhcnkvYWxsb2Mvc3JjL3ZlYy9tb2QucnMYixAATAAAAE0LAAANAAAAAAAAAAMAAAABAAAAAgAAABASCgsYGAkPBgcYCAMVGBgYGBgYDg0TFhgYGBgYGBgYGBgYDBgUGAUIFB0dAwRADQ4PGx0cNSs/SUEGMzodNhwIFB0dAwRADQ4PGx0cNSwrP0lBBjM3HQAAAAAAkwAgCAAAAADRACAIAAAAANEAIAgAAAAA/////38AQZiYwgALBf////9/AEGgmMIACwEDAEGwmMIACwEBAEHEmMIACwGnAEHUmMIACwGn"))];case 1:g=A.sent(),A.label=2;case 2:Z=t(g),A.label=3;case 3:return[4,Z];case 4:return A.sent(),[2]}}))}))},exports.initSync=function(A){const I=H();return A instanceof WebAssembly.Module||(A=new WebAssembly.Module(A)),q(new WebAssembly.Instance(A,I),A)};TypeError: Cannot read properties of undefined (reading '__wbindgen_add_to_stack_pointer')Node.js v20.9.0Process finished with exit code 1
π€ Expected Behavior
init wasi is normal
π Steps to reproduce
node index.mjs
you will get the error msg in your terminal
π Your environment
Include the relevant details of your environment.
wasm-pack version: 0.12.1
rustc version: 1.74.0
rustup toolchain: stable
The text was updated successfully, but these errors were encountered:
π Bug description
any disk location/ index.mjs
π€ Expected Behavior
init wasi is normal
π Steps to reproduce
node index.mjs
you will get the error msg in your terminal
π Your environment
Include the relevant details of your environment.
wasm-pack version: 0.12.1
rustc version: 1.74.0
rustup toolchain: stable
The text was updated successfully, but these errors were encountered: