The error I above is only happening when I use the Uuid package, So I guess I need to checkout those custom principals/uuids.
But even after removing the Uuid. I am getting this similar error:
Failed to install wasm module to canister 'backend'.
Failed during wasm installation call: The replica returned a replica error: reject code CanisterError,
reject message Wasm module of canister bkyz2-fmaaa-aaaaa-qaaaq-cai is not valid: Wasm module has
an invalid import section. Module imports function '__wbindgen_describe' from '__wbindgen_placeholder__' that is not exported by the runtime., error code None
These are mt dependencies:
[lib]
crate-type = ["cdylib"]
[dependencies]
candid = "0.9.9"
ic-cdk = "0.11.1"
serde = { version = "1", features = ["derive"] }
getrandom = { version = "0.2.11", features = ["js"] }
rand = "0.8.5"
tiny-bip39 = {version = "1.0.0"}
serde_json = "1.0"
ic-stable-structures = "0.6.0"
In my lib I am only using this:
#[macro_use]
extern crate serde;
use candid::{Decode, Encode};
use ic_cdk::api::time;
use ic_stable_structures::memory_manager::{MemoryId, MemoryManager, VirtualMemory};
use ic_stable_structures::storable::Bound;
use ic_stable_structures::{ DefaultMemoryImpl, StableBTreeMap, Storable};
use std::{borrow::Cow, cell::RefCell};