wbobeirne / eth-balance-checker

Solidity contract to batch balance checks in one call
MIT License
253 stars 82 forks source link

Issue running npm install #54

Closed Crack019 closed 1 year ago

Crack019 commented 1 year ago

src/ethers.ts:7:31 - error TS2307: Cannot find module './abis/BalanceChecker.abi.json' or its corresponding type declarations.

Extracted zip and trying to install using NPM.

2022-12-21T23_46_09_767Z-debug-0.log

Crack019 commented 1 year ago

2022-12-22T00_05_54_261Z-debug-0.log 2022-12-22T00_05_54_261Z-debug-0.log Compiling your contracts...

Everything is up to date, there is nothing to compile.

eth-balance-checker@0.2.0 build:lib tsc

src/ethers.ts:7:31 - error TS2307: Cannot find module './abis/BalanceChecker2.abi.json' or its corresponding type declarations.

7 import BalanceCheckerABI from './abis/BalanceChecker2.abi.json';



Found 1 error in src/ethers.ts:7

npm ERR! code 2
npm ERR! path /root/eth-balance-checker-master
npm ERR! command failed
npm ERR! command sh -c npm run build

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-12-22T00_05_54_261Z-debug-0.log
wbobeirne commented 1 year ago

Hey @Crack019, what OS are you on? The abis folder in src is just a symlink so it's very likely something about either your OS or the way you cloned the repo doesn't like symlinks.

wbobeirne commented 1 year ago

Also the readme should probably remove suggesting using npm install for development, you should use yarn so that it respects the yarn.lock file for dependencies.

Crack019 commented 1 year ago

I'm using Debian 11, fixed error using GitHub CLI and yarn install, thanks wbobeirne