Hi, I have been getting this error when setting up my azle projects using dfx new projectName
for weeks now. When i try to deploy even without making a change in the codebase i run into this error:
dfx deploy
Deploying all canisters.
All canisters have already been created.
Building canisters…
Executing ‘npx azle app_backend’
Building canister app_backend
Error: Command failed: cd .azle/app_backend && /Users/sylusabel/.config/azle/rust/1.73.0/bin/cargo build --target wasm32-wasi --manifest-path canister/Cargo.toml --release
Updating crates.io index
Updating git repository https://github.com/demergent-labs/ic-wasi-polyfill
Updating git repository https://github.com/ulan/javy.git
Updating git repository https://github.com/wasm-forge/stable-fs
error: failed to select a version for the requirement futures-util = "=0.3.27"
candidate versions found which didn’t match: 0.3.31, 0.2.1, 0.2.0
location searched: crates.io index
required by package quickjs-wasm-sys v1.0.0 (https://github.com/ulan/javy.git?rev=fdf12ce4fd5636417cd63e1f6296aa79196434a7#fdf12ce4)
… which satisfies git dependency quickjs-wasm-sys
of package quickjs-wasm-rs v1.0.0 (https://github.com/ulan/javy.git?rev=fdf12ce4fd5636417cd63e1f6296aa79196434a7#fdf12ce4)
… which satisfies git dependency quickjs-wasm-rs
of package canister v0.0.0 (/Users/sylusabel/Desktop/development/web3/app/.azle/app_backend/canister)
perhaps a crate was updated and forgotten to be re-vendored?
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at checkExecSyncError (node:child_process:891:11)
at execSync (node:child_process:963:15)
at compileRustCode (/Users/sylusabel/Desktop/development/web3/app/node_modules/azle/src/compiler/compile_rust_code.ts:14:13)
at /Users/sylusabel/Desktop/development/web3/app/node_modules/azle/src/compiler/index.ts:135:28
at time (/Users/sylusabel/Desktop/development/web3/app/node_modules/azle/src/compiler/utils/time.ts:10:26)
at azle (/Users/sylusabel/Desktop/development/web3/app/node_modules/azle/src/compiler/index.ts:55:15)
at Object.<anonymous> (/Users/sylusabel/Desktop/development/web3/app/node_modules/azle/src/compiler/index.ts:35:1)
at Module._compile (node:internal/modules/cjs/loader:1469:14) {
status: 101,
signal: null,
output: [
null,
Buffer(0) [Uint8Array] ,
Buffer(965) [Uint8Array] [
32, 32, 32, 32, 85, 112, 100, 97, 116, 105, 110, 103,
32, 99, 114, 97, 116, 101, 115, 46, 105, 111, 32, 105,
110, 100, 101, 120, 10, 32, 32, 32, 32, 85, 112, 100,
97, 116, 105, 110, 103, 32, 103, 105, 116, 32, 114, 101,
112, 111, 115, 105, 116, 111, 114, 121, 32, 96, 104, 116,
116, 112, 115, 58, 47, 47, 103, 105, 116, 104, 117, 98,
46, 99, 111, 109, 47, 100, 101, 109, 101, 114, 103, 101,
110, 116, 45, 108, 97, 98, 115, 47, 105, 99, 45, 119,
97, 115, 105, 45,
… 865 more items
]
],
pid: 66115,
stdout: Buffer(0) [Uint8Array] ,
stderr: Buffer(965) [Uint8Array] [
32, 32, 32, 32, 85, 112, 100, 97, 116, 105, 110, 103,
32, 99, 114, 97, 116, 101, 115, 46, 105, 111, 32, 105,
110, 100, 101, 120, 10, 32, 32, 32, 32, 85, 112, 100,
97, 116, 105, 110, 103, 32, 103, 105, 116, 32, 114, 101,
112, 111, 115, 105, 116, 111, 114, 121, 32, 96, 104, 116,
116, 112, 115, 58, 47, 47, 103, 105, 116, 104, 117, 98,
46, 99, 111, 109, 47, 100, 101, 109, 101, 114, 103, 101,
110, 116, 45, 108, 97, 98, 115, 47, 105, 99, 45, 119,
97, 115, 105, 45,
… 865 more items
]
}
Building frontend…
Error: Failed while trying to deploy canisters.
Caused by: Failed to build all canisters.
Caused by: Failed while trying to build all canisters.
Caused by: The build step failed for canister ‘be2us-64aaa-aaaaa-qaabq-cai’ (app_backend)
Caused by: Failed to build custom canister app_backend.
Caused by: Failed to run npx azle app_backend.
Caused by: The custom tool failed.