Global_timer_set error

Build is perfect while installing getting this error

dfx version is 0.13.1

Error: Failed to install wasm module to canister ‘helloworld’.
Caused by: Failed to install wasm module to canister ‘helloworld’.
Failed to install wasm in canister ‘rrkah-fqaaa-aaaaa-aaaaq-cai’.
Failed to install wasm.
The Replica returned an error: code 5, message: “Wasm module of canister rrkah-fqaaa-aaaaa-aaaaq-cai is not valid: Wasm module has an invalid import section. Module imports function ‘global_timer_set’ from ‘ic0’ that is not exported by the runtime.”

Any help on this would be highly appreciated.

Is there an earlier version of dfx than 0.13 set in dfx.json?

1 Like

Yes sir.
You are right. I put the right version. Then it works properly

If you remove the line "dfx": "0.13.1" entirely, it will default to the currently installed version and you won’t have to update the field manually.