This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Wasm-bindgen does not pass String from Rust to JS #3224
Labels
You can continue the conversation there. Go to discussion →
Describe the Bug
Hi, I've got such a code:
When compiling it with
wasm-pack --target=web
and calling it from JS, I've gotundefined
as a result. It seems that I'm not the only one facing this issue and it seems that compiling everything with--target=nodejs
makes it working: https://stackoverflow.com/questions/70079979/how-do-i-return-a-string-from-a-rust-function-in-nodejs-webassembly-using-wasm-bI'm not sure whether this issue is connected more with wasm-pack or wasm-bindgen, but as wam-pack is not very actively maintained, I prefer to ask here first for any help / guidance. Thank you :)
The text was updated successfully, but these errors were encountered: