It is still under development, that’s why my code is still in a branch, but i’ve got a working example: deckdeckgo/ic.installcode.mjs at build/install-code · deckgo/deckdeckgo · GitHub
For me the tricks was
- be sure that the local candid description is up-to-date
- encode the canister parameters as candid parameters (thread)
Not sure it is your error but maybe by comparing you will notice something. Hope it helps.