Yup. The first command, dfx build serve
fails, complaining that credits
is not found. serve
is one canister that imports the credits
canister which is in the same project and both exist in the canister_ids.json file:
"credits": {
"local": "rwlgt-iiaaa-aaaaa-aaaaa-ca
},
"serve": {
"local": "ryjl3-tyaaa-aaaaa-aaaba-cai"
},
My output:
% dfx build serve
Building canisters...
The build step failed for canister 'ryjl3-tyaaa-aaaaa-aaaba-cai' with an embedded error: The command '"/Users/mikem/.cache/dfinity/versions/0.6.16/moc" "/Users/mikem/OneDrive/Projects/Web/videate/credits/src/serve/main.mo" "-o" "/Users/mikem/OneDrive/Projects/Web/videate/credits/.dfx/local/canisters/serve/serve.did" "--idl" "--actor-idl" "/Users/mikem/OneDrive/Projects/Web/videate/credits/.dfx/local/canisters/idl/" "--actor-alias" "serve" "ryjl3-tyaaa-aaaaa-aaaba-cai" "--package" "base" "/Users/mikem/.cache/dfinity/versions/0.6.16/base"' failed with exit status 'exit code: 1'.
Stdout:
Stderr:
/Users/mikem/OneDrive/Projects/Web/videate/credits/src/serve/main.mo:19.1-19.34: import error, canister alias "credits" not defined
serve
uses import Credits "canister:credits";
to import the credits
canister and the credits
code is parallel to the serve
code. Both are able to be deployed with dfx deploy
commands; building works just fine in that case.