kevinheavey / anchor-bankrun

An Anchor wrapper for solana-bankrun
MIT License
36 stars 8 forks source link

solana-bankrun dependency is mismatched and/or outdated. #20

Open heyAyushh opened 2 months ago

heyAyushh commented 2 months ago

This happens when you install solana-bankrun and anchor-bankrun at the same time.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @solana-developers/helpers@2.5.0
npm ERR! Found: solana-bankrun@0.3.0
npm ERR! node_modules/solana-bankrun
npm ERR!   solana-bankrun@"^0.3.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer solana-bankrun@"^0.2.0" from anchor-bankrun@0.4.0
npm ERR! node_modules/anchor-bankrun
npm ERR!   anchor-bankrun@"^0.4.0" from the root project
kevinheavey commented 2 months ago

Can you give a minimal reproducible example please?

heyAyushh commented 2 months ago

Try this codesandbox link to the nodejs project

stevensanborn commented 1 month ago

is just did npx create-solana-dapp and added bankrun now i get :

npm install anchor-bankrun

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: anchor-bankrun@0.4.1 npm ERR! Found: @solana/web3.js@1.95.3 npm ERR! node_modules/@solana/web3.js npm ERR! @solana/web3.js@"^1.95.1" from the root project npm ERR! @solana/web3.js@"^1.68.0" from @coral-xyz/anchor@0.30.1 npm ERR! node_modules/@coral-xyz/anchor

i redid it using pnpm i and it works go figure