-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
"Module doesn't have export __wbindgen_describe___wbg_f_alert_alert_n" #309
Comments
@steveklabnik I wonder if it has to do with the extern func declaration? I'm accustomed to seeing examples having the functions exposed with |
This won't compile if it isn't pub! Fixes rustwasm/wasm-bindgen#309
That is totally it! I've sent a docs PR upstream. |
If the use of the thing is in the same crate (as is the case here), then it shouldn't need the |
I still think it is a bug that it doesn't work without |
For future lurkers... I ran into this same thing where I was in business with: // src/lib.rs
pub other_module;
// src/other_module.rs
#[wasm_bindgen]
// stuff ...but as soon as I removed the |
@turboladen I think that issue is #201 |
@steveklabnik hm I'm a little confused and I wonder if this could be a roundabout version mismatch or wasm-pack bug? We have an example in this repository with your exact example above, and it's tested to work on CI If you check out the master branch of this repo does the example work? Or does your installed tool work? Do you know what version was installed? |
Ah, thanks @alexcrichton ! |
Hm I've also tried out the instructions in the OP and can't reproduce :( |
I'm gonna close this as this is likely a dupe of #201, but if not I can always reopen! |
Code:
Cargo.toml:
When I invoke wasm-bindgen through wasm-pack...:
rustc version:
> rustc --version rustc 1.28.0-nightly (01cc982e9 2018-06-24)
Any ideas what's wrong here?
The text was updated successfully, but these errors were encountered: