Skip to content
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

get_all and get_from_point is not found when compiling to WASM #51

Closed
goofynugtz opened this issue Jun 25, 2023 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@goofynugtz
Copy link

$ wasm-pack build --target nodejs
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
   Compiling display-info v0.4.2
error[E0425]: cannot find function `get_all` in this scope
  --> /home/goofynugtz/.cargo/registry/src/github.com-1ecc6299db9ec823/display-info-0.4.2/src/lib.rs:32:5
   |
32 |     get_all()
   |     ^^^^^^^ not found in this scope

error[E0425]: cannot find function `get_from_point` in this scope
  --> /home/goofynugtz/.cargo/registry/src/github.com-1ecc6299db9ec823/display-info-0.4.2/src/lib.rs:36:5
   |
36 |     get_from_point(x, y)
   |     ^^^^^^^^^^^^^^ not found in this scope

For more information about this error, try `rustc --explain E0425`.
error: could not compile `display-info` due to 2 previous errors
Error: Compiling your crate to WebAssembly failed
Caused by: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 101
@goofynugtz
Copy link
Author

Also opened at display-info

@goofynugtz goofynugtz reopened this Jun 25, 2023
@nashaofu nashaofu added the enhancement New feature or request label Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants