Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Uncaught (in promise) TypeError: WebAssembly.instantiate(): Import #7 module="__wbindgen_placeholder__" error: module is not an object or function #14

Open
Labels
questionFurther information is requested
@Boscop

Description

When I try to use console_error_panic_hook in my yew project, my app panics on std::panic::set_hook(box console_error_panic_hook::hook) with:

Uncaught (in promise) TypeError: WebAssembly.instantiate(): Import #7 module="wbindgen_placeholder" error: module is not an object or function

I have the following [dependencies]:

yew = "0.11"
wasm-bindgen = "0.2"
console_error_panic_hook = "0.1.6"
#[wasm_bindgen(start)]
pub fn main_js() {
	#[cfg(debug_assertions)]
	std::panic::set_hook(box console_error_panic_hook::hook);
	web_logger::init();
	yew::initialize();
	App::<Model>::new().mount_to_body();
	yew::run_loop();
}
fn main() {
	main_js();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /