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

Unable to compile binaries / LinkError: WebAssembly.instantiate() #358

Closed
David-Development opened this issue Oct 21, 2024 · 2 comments
Closed

Comments

@David-Development
Copy link

When I try to build the repo myself (on main) using npm run build:wasm it will generate a new wasm/index_bg.wasm file. Unfortunately when I include this file in my web project I get the following error: LinkError: WebAssembly.instantiate(): Import #0 "wbg" "__wbg_new_70a2f23d1565c04c": function import requires a callable. I saw that there was a report for version 2.6.1 which has been fixed in 2.6.2 however from the changes in the MR I was unable to identify the required changes to fix the issue since the files in the MR are auto-generated if I'm not mistaken.

Background: I'm trying to upgrade resvg to 0.44.0 since CSS injection support has been added recently (and also experiment with the SIMD features / type features).

@David-Development
Copy link
Author

Forgot to update the corresponding js files in the web projects since I was importing them through the npm dependency.. Sorry 🤦‍♂️

@yisibl
Copy link
Member

yisibl commented Oct 21, 2024

That's okay, glad to see you trying and exploring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants