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

Dependency issue #10

Open
seeincodes opened this issue Dec 7, 2022 · 1 comment
Open

Dependency issue #10

seeincodes opened this issue Dec 7, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@seeincodes
Copy link

What happened?

I used npx create-web3 to create the project, but when I went into packages/frontend to install the dependencies using "npm install" I got an error.

What was Expected?

when using "npm install" to install all dependencies with no issues

Relevant log output

frontend git:(main) ✗ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: @create-web3/[email protected]
npm ERR! Found: @nomiclabs/[email protected]
npm ERR! node_modules/@nomiclabs/hardhat-ethers
npm ERR!   dev @nomiclabs/hardhat-ethers@"npm:hardhat-deploy-ethers@^0.3.0-beta.10" from @create-web3/[email protected]
npm ERR!   packages/backend
npm ERR!     @create-web3/[email protected]
npm ERR!     node_modules/@create-web3/backend
npm ERR!       workspace packages/backend from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @nomiclabs/hardhat-ethers@"^2.0.0" from @nomiclabs/[email protected]
npm ERR! node_modules/@nomiclabs/hardhat-waffle
npm ERR!   dev @nomiclabs/hardhat-waffle@"^2.0.3" from @create-web3/[email protected]
npm ERR!   packages/backend
npm ERR!     @create-web3/[email protected]
npm ERR!     node_modules/@create-web3/backend
npm ERR!       workspace packages/backend from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

Proposed Solution

No response

Additional Information

No response

@seeincodes seeincodes added the bug Something isn't working label Dec 7, 2022
@jonomnom
Copy link

jonomnom commented Dec 7, 2022

I got the same error with the following settings:

Typescript
Nextjs
Chakra
NPM

When I tried using npm i --force, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants