Skip to content
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

Update wasm-bindgen and wasm-pack to resolve ReferenceError #888

Open
mtoohey31 opened this issue Aug 25, 2024 · 1 comment · May be fixed by #908
Open

Update wasm-bindgen and wasm-pack to resolve ReferenceError #888

mtoohey31 opened this issue Aug 25, 2024 · 1 comment · May be fixed by #908
Labels
enhancement New feature or request

Comments

@mtoohey31
Copy link

Hello! I'm trying to use the npm package via vite-plugin-wasm, but I'm running into the following error:

Uncaught ReferenceError: Cannot access 'memory' before initialization
    at stylua_lib_bg.js?v=4e2ee103:671:42
(anonymous) @ stylua_lib_bg.js?v=4e2ee103:671

I believe this error is the same as Menci/vite-plugin-wasm#8 (comment). It sounds like that was resolved by rustwasm/wasm-bindgen#2965, but that fix is only present in wasm-bindgen 0.2.82 and onwards (but this project is using 0.2.81). I was wondering if you'd have any problem with updating things to incorporate the fix.

@mtoohey31 mtoohey31 changed the title Update wasm-bindgen`and wasm-pack to resolve ReferenceError Update wasm-bindgen and wasm-pack to resolve ReferenceError Aug 25, 2024
@JohnnyMorganz
Copy link
Owner

Nope no problems, we can update this. Also happy to accept a PR to do so

@JohnnyMorganz JohnnyMorganz added the enhancement New feature or request label Oct 26, 2024
@mtoohey31 mtoohey31 linked a pull request Oct 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants