-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cheat sheet not working #336
Comments
Thank you for your report :) The first one, ESM import issue, will be fixed in the next 2.4.0 release. The sample code was recently written targeting the next release. The second issue is related to #314, but we can just add the field in browser.ts now. |
Thanks.
Alright cool, so the solution would be to vendor node.esm.js until that is fixed? |
Yes, that would be a temporal solution until we release the next patch release. Or you can use tomorrow's nightly release. |
Thanks! |
Hi, when following the steps at https://github.com/ruby/ruby.wasm/blob/main/docs/cheat_sheet.md#nodejs, I get the following error:
If I copy
node_modules/@ruby/3.2-wasm-wasi/dist/node.esm.js
locally and import it relatively, I don't get that error. However, I then get another error:I fixed this by changing the WASI instantiation code at line 1193 to
const wasi = new WASI({ env: options.env, version: 'preview1' });
Using Node v21.4.0.
The text was updated successfully, but these errors were encountered: