-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Please add Readme instruction on how to generate Anchor JS client with Solana Web3.js v2.0
pnpm create solana-program
cd my-program
pnpm install
pnpm generate
Then I got error:
Compiling anchor-cli v0.30.1
Finished `release` profile [optimized] target(s) in 1m 35s
Installing .../my-program/.cargo/bin/anchor
Installed package `anchor-cli v0.30.1` (executable `anchor`)
warning: be sure to add `.../my-program/.cargo/bin` to your PATH to be able to run the installed binaries
Failed to execute: anchor build,--idl,.../my-program/program
.../my-program/node_modules/.pnpm/@[email protected]/node_modules/
@metaplex-foundation/shank-js/dist/generators/anchor.js:24
throw new Error(`${programName} idl generation failed`);
^
Error: solana_program_my_program idl generation failed
at generate (.../my-program/node_modules/.pnpm/@[email protected]/node_modules/
@metaplex-foundation/shank-js/dist/generators/anchor.js:24:15)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async generateIdl (.../my-program/node_modules/.pnpm/@[email protected]/node_modules/
@metaplex-foundation/shank-js/dist/generateIdl.js:13:17)
Node.js v23.7.0
ELIFECYCLE Command failed with exit code 1.
ELIFECYCLE Command failed with exit code 1.
Metadata
Metadata
Assignees
Labels
No labels