I tried to build my project anchor build
but I got
$ Error: IDL doesn't exist
target/idl/
and target/types/
were generated but they were empty.
Then I tried anchor clean
, anchor build
. The same.
Then I tried anchor idl init -f <filepath> <program id>
$ Error: Is a directory (os error 21)
Then I finally tried anchor build -v
Using image "backpackapp/build:v0.29.0"
Run docker image
Error during Docker build: Docker build failed: No such file or directory (os error 2)
Error: Docker build failed: No such file or directory (os error 2)
I also tried:
- change
idl = true
inAnchor.toml
- delete
no-idl = []
string inCargo.toml
I’m on Ubuntu
2
Answers
i found solution.
Getting the same thing after starting a fresh project
Anchor
0.29.0
Solana
1.17.22