Uniswap / v2-core

🦄 🦄 Core smart contracts of Uniswap V2
https://uniswap.org/docs
GNU General Public License v3.0
2.92k stars 3.13k forks source link

Yarn compile has error. #156

Open hobbydev71 opened 2 years ago

hobbydev71 commented 2 years ago

I tried yarn compile, but it shows the error Invalid callback specified. This is the output.

yarn run v1.22.17 $ yarn clean $ rimraf ./build/ $ waffle .waffle.json AssertionError [ERR_ASSERTION]: Invalid callback specified. at wrapCallback (E:\Work\Uniswap\v2-core\node_modules\solc\wrapper.js:16:5) at runWithReadCallback (E:\Work\Uniswap\v2-core\node_modules\solc\wrapper.js:42:26) at compileStandard (E:\Work\Uniswap\v2-core\node_modules\solc\wrapper.js:83:14) at Object.compileStandardWrapper (E:\Work\Uniswap\v2-core\node_modules\solc\wrapper.js:90:14) at compile (E:\Work\Uniswap\v2-core\node_modules\@ethereum-waffle\compiler\dist\cjs\compileSolcjs.js:54:29) { generatedMessage: false, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

How can I fix that?

0xouzm commented 2 years ago

rm yarn.lock && node_modules and run it again