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

could not compile mio due to 44 previous errors #1719

Closed
jcarbonnell opened this issue Oct 10, 2023 · 3 comments
Closed

could not compile mio due to 44 previous errors #1719

jcarbonnell opened this issue Oct 10, 2023 · 3 comments

Comments

@jcarbonnell
Copy link

Hi
I'm getting an "error: could not compile mio due to 44 previous errors"
when trying to "npm run build" the following nextJs app containing a smart contract written in rust for the near blockchain.

I wonder if the issue is coming from a missing support between mio and wasm?
Is there a way to bypass that issue?

I am using the following rust versions:
stable-aarch64-apple-darwin unchanged - rustc 1.73.0 (cc66ad468 2023-10-03)
1.69-aarch64-apple-darwin unchanged - rustc 1.69.0 (84c898d65 2023-04-16)

the full error is here:
https://pastebin.com/a0xhtXR5

@Thomasdezeeuw
Copy link
Collaborator

What command cargo/rustc command are you running? Also what are you targeting? macOS? Wasm?

@jcarbonnell
Copy link
Author

my local computer is macOS, but the app aims to run from an Ubuntu VPS. The smart contract compiles to WASM.

@jcarbonnell
Copy link
Author

replacing the full features import of tokio in the cargo.toml file by the mio version 0.8.8 removed this compile error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants