We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm defining my initalization function like so:
#[wasm_bindgen] pub fn init() { #[cfg(feature = "console_error_panic_hook")] panic::set_hook(Box::new(console_error_panic_hook::hook)); //set_panic_hook(); wasm_logger::init(wasm_logger::Config::default()); }
This gives the following error when running wasm-pack build --release
wasm-pack build --release
thread 'main' panicked at 'assertion failed: `(left == right)` left: `"Error"`, right: `"Error2"`', crates\cli-support\src\js\mod.rs:175:21 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Error: Running the wasm-bindgen CLI Caused by: Running the wasm-bindgen CLI Caused by: failed to execute `wasm-bindgen`: exited with exit code: 101 full command: "C:\\Users\\brand\\AppData\\Local\\.wasm-pack\\wasm-bindgen-7e757a9923d43b8a\\wasm-bindgen.exe" "C:\\Users\\brand\\repos\\celeste\\satellite-rs\\target\\wasm32-unknown-unknown\\release\\satellite_rs.wasm" "--out-dir" "C:\\Users\\brand\\repos\\celeste\\satellite-rs\\pkg" "--typescript" "--target" "bundler"
this error does not occur if I disable the "console_error_panic_hook" feature
I would expect that I would be able to create a wasm-bindgen function that I can call from my frontend to initalize the logging hook
Got the following error on wasm-pack build:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Bug
I'm defining my initalization function like so:
This gives the following error when running
wasm-pack build --release
this error does not occur if I disable the "console_error_panic_hook" feature
Steps to Reproduce
Expected Behavior
I would expect that I would be able to create a wasm-bindgen function that I can call from my frontend to initalize the logging hook
Actual Behavior
Got the following error on wasm-pack build:
The text was updated successfully, but these errors were encountered: