-
Hi guys. In the lesson 13 around 14:27:00 i faced an error. Please help me. `Failed to compile. Module not found: Error: Can't resolve 'ethers' in 'D:\Media\Work\Web development\My projects\Blockchain projects\stake-and-yield-brownie\front_end\node_modules@usedapp\core\dist\esm\src\abi\multicall' ERROR in ./node_modules/@usedapp/core/dist/esm/src/abi/multicall/constants.js 1:0-31 ERROR in ./node_modules/@usedapp/core/dist/esm/src/abi/multicall2/constants.js 1:0-31 ERROR in ./node_modules/@usedapp/core/dist/esm/src/constants/abi/index.js 1:0-31 ERROR in ./node_modules/@usedapp/core/dist/esm/src/helpers/address.js 1:0-31 ERROR in ./node_modules/@usedapp/core/dist/esm/src/helpers/calls.js 1:0-31 ERROR in ./node_modules/@usedapp/core/dist/esm/src/helpers/contract.js 1:0-41 ERROR in ./node_modules/@usedapp/core/dist/esm/src/helpers/getSignerFromOptions.js 1:0-32 ERROR in ./node_modules/@usedapp/core/dist/esm/src/helpers/injectedProvider.js 2:0-35 ERROR in ./node_modules/@usedapp/core/dist/esm/src/hooks/useBlockMeta.js 2:0-35 ERROR in ./node_modules/@usedapp/core/dist/esm/src/hooks/useEtherBalance.js 4:0-34 ERROR in ./node_modules/@usedapp/core/dist/esm/src/hooks/useEthers.js 1:0-46 ERROR in ./node_modules/@usedapp/core/dist/esm/src/hooks/usePromiseTransaction.js 3:0-43 ERROR in ./node_modules/@usedapp/core/dist/esm/src/hooks/useRawCalls.js 3:0-31 ERROR in ./node_modules/@usedapp/core/dist/esm/src/hooks/useToken.js 3:0-34 ERROR in ./node_modules/@usedapp/core/dist/esm/src/hooks/useTokenAllowance.js 1:0-34 ERROR in ./node_modules/@usedapp/core/dist/esm/src/hooks/useTokenBalance.js 1:0-34 ERROR in ./node_modules/@usedapp/core/dist/esm/src/model/CurrencyValue.js 1:0-35 ERROR in ./node_modules/@usedapp/core/dist/esm/src/providers/LocalMulticallProvider.js 3:0-31 ERROR in ./node_modules/@usedapp/core/dist/esm/src/providers/chainState/common/multicall.js 1:0-34 ERROR in ./node_modules/@usedapp/core/dist/esm/src/providers/chainState/common/multicall2.js 1:0-34 ERROR in ./node_modules/@usedapp/core/dist/esm/src/providers/network/network/provider.js 5:0-35 ERROR in ./node_modules/@usedapp/core/dist/esm/src/providers/network/readonlyNetworks/provider.js 3:0-35 webpack compiled with 22 errors and 1 warning |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hello @KAD105 |
Beta Was this translation helpful? Give feedback.
-
However i managed to handle the error. I found out that it must be something about ethers, so with a bit google research i found this line of code:
and now it's solved! |
Beta Was this translation helpful? Give feedback.
However i managed to handle the error. I found out that it must be something about ethers, so with a bit google research i found this line of code:
and now it's solved!