Open Boscop opened 4 years ago
Although I did not use this crate, I was able to resolve this issue by implementing a similar panic hook in stdweb:
#[macro_use]
extern crate stdweb;
fn main() {
panic::set_hook(Box::new(|p| {
let s = p.to_string();
js!{ console.error(@{s});}
}));
}
I get this same error when attempting to use wasm_bindgen::throw_str
.
When I try to use
console_error_panic_hook
in my yew project, my app panics onstd::panic::set_hook(box console_error_panic_hook::hook)
with:I have the following
[dependencies]
: