zksync-web-era-docs
zksync-web-era-docs copied to clipboard
no matches found: ethers@^5.7.2
https://github.com/matter-labs/zksync-web-era-docs/blob/5130249955cf49ab29b676d383bc4e8de2675835/docs/api/hardhat/getting-started.md?plain=1#L34
➜ yarn init -y && yarn add -D typescript ts-node ethers@^5.7.2 zksync-web3 hardhat @matterlabs/hardhat-zksync-solc @matterlabs/hardhat-zksync-deploy
yarn init v1.22.19
warning The yes flag has been set. This will automatically answer yes to all questions, which may have security implications.
success Saved package.json
✨ Done in 0.04s.
zsh: no matches found: ethers@^5.7.2
works with [email protected]. yarn 3.5.0 same error
--
I also had to add these 2 libraries manually:
"@ethersproject/hash": "^5.7.0",
"@ethersproject/web": "^5.7.1"
error was Error: zksync-web3 tried to access @ethersproject/web, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.