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

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

Open
heyAyushh opened this issue Aug 21, 2024 · 3 comments
Open

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

heyAyushh opened this issue Aug 21, 2024 · 3 comments

Comments

@heyAyushh
Copy link

heyAyushh commented Aug 21, 2024

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/[email protected]
npm ERR! Found: [email protected]
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 [email protected]
npm ERR! node_modules/anchor-bankrun
npm ERR!   anchor-bankrun@"^0.4.0" from the root project
@kevinheavey
Copy link
Owner

Can you give a minimal reproducible example please?

@heyAyushh
Copy link
Author

heyAyushh commented Aug 25, 2024

Try this codesandbox link to the nodejs project

  • execute pnpm i anchor-bankrun solana-bankrun

@stevensanborn
Copy link

stevensanborn commented Oct 11, 2024

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: [email protected]
npm ERR! Found: @solana/[email protected]
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/[email protected]
npm ERR! node_modules/@coral-xyz/anchor

i redid it using pnpm i and it works go figure

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

3 participants