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

Yarn compile has error. #156

Open
hobbydev71 opened this issue May 10, 2022 · 1 comment
Open

Yarn compile has error. #156

hobbydev71 opened this issue May 10, 2022 · 1 comment

Comments

@hobbydev71
Copy link

hobbydev71 commented May 10, 2022

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
Copy link

0xouzm commented May 24, 2022

rm yarn.lock && node_modules and run it again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants