-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Error calling wasm function with complex object as argument #10182
Comments
Using |
I tried using
|
I would have used |
For both |
That works perfectly! Thank you so much for your help, @sapphi-red! |
Describe the bug
I came up against an issue when developing a Vite 3 based project that calls a wasm function that passes a complex object (an array of arrays of numeric values) from the JS world into the wasm.
Vite seems to have a problem binding to the JS code generated by wasm-build, which results in the following error message being shown in the browser console:
I have created an example project to illustrate this.
Please let me know if this is a bug, or if the error is my own.
Many thanks!
Reproduction
https://github.com/grahamdaley/vite-wasm-test
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: