Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on fresh install #2

Open
stoooops opened this issue Jul 22, 2024 · 2 comments
Open

Build fails on fresh install #2

stoooops opened this issue Jul 22, 2024 · 2 comments

Comments

@stoooops
Copy link

stoooops commented Jul 22, 2024

I'm new to Solana and struggling to find a single example repo that actually builds and works.


Build fails with

Error: `idl-build` feature is missing. To solve, add
[features]
idl-build = ["anchor-lang/idl-build"]
in `/path/to/CRUD-dApp/anchor/programs/journal/Cargo.toml`.
Warning: run-commands command "anchor build" exited with non-zero status code

 ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Ran target anchor for project anchor (47s)

         With additional flags:
           build

    ✖    1/1 failed
    ✔    0/1 succeeded [0 read from cache]

Adding the idl-build = ["anchor-lang/idl-build"] line also fails with:

Error: IDL doesn't exist
Warning: run-commands command "anchor build" exited with non-zero status code

 ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Ran target anchor for project anchor (17s)

         With additional flags:
           build

    ✖    1/1 failed
    ✔    0/1 succeeded [0 read from cache]
@stoooops
Copy link
Author

I downgraded to anchor 0.29.0 and it seems to build now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@stoooops and others