wang
1
On dfx 0.5.11, given this dfx.json
:
{
"canisters": {
"a": {
"main": "A.mo",
"type": "motoko"
},
"B": {
"main": "b.mo",
"type": "motoko"
}
}
Running dfx build
returns an error:
No actor found, cannot generate JS bindings
Changing the file names to a.mo
and B.mo
, respectively, fixes it.
@hansl
1 Like
hansl
2
Haha what? I’ll look at it tomorrow morning.
hansl
3
Can you try with 0.5.13 (you’ll have to change the package.json to point to @dfinity/agent latest)
wang
4
Just tried with 0.5.13, same error
hansl
5
Okay I have a fix in PR, will be in the next release.
1 Like
wang
6
Unrelated to the above but I didn’t want to create a new topic:
In the user library, is IDL.PrincipalClass
correct? Looks like the encoding is expecting a CanisterId
instead
hansl
7
You are correct. The types aren’t right. A CanisterID is a Principal but a Principal can be more. It will be fixed soon.