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
We've been trying to figure out what's causing an error detailed in this thread: rustwasm/wasm-bindgen#3306
In particular, the issue is that functions imported from binaries generated from wasm-pack build --target bundler fail to run when called, and instead return the error Undefined __wbindgen_malloc.
🤔 Expected Behavior
A bundle is returned where functions are called that run without malloc errors.
When bundled with webpack, and a function is imported and called, the above error occurs. The error goes away if init is called and awaited from the web target, but init is not returned as a default export by the bundler in a similar way.
🌍 Your environment
Arch Linux 6.1.9-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Wed, 01 Feb 2023 17:07:37 +0000 x86_64 GNU/Linux
rustc 1.67.0 (fc594f156 2023-01-24)
wasm-pack 0.10.3
The text was updated successfully, but these errors were encountered:
🐛 Bug description
We've been trying to figure out what's causing an error detailed in this thread: rustwasm/wasm-bindgen#3306
In particular, the issue is that functions imported from binaries generated from
wasm-pack build --target bundler
fail to run when called, and instead return the errorUndefined __wbindgen_malloc
.🤔 Expected Behavior
A bundle is returned where functions are called that run without malloc errors.
👟 Steps to reproduce
The code I'm trying to run is deployed here: https://unpkg.com/browse//bitmask-core@0.5.0/
When bundled with webpack, and a function is imported and called, the above error occurs. The error goes away if init is called and awaited from the web target, but init is not returned as a default export by the bundler in a similar way.
🌍 Your environment
Arch Linux 6.1.9-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Wed, 01 Feb 2023 17:07:37 +0000 x86_64 GNU/Linux
rustc 1.67.0 (fc594f156 2023-01-24)
wasm-pack 0.10.3
The text was updated successfully, but these errors were encountered: