Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Issue with package @eth-optimism/contracts when running docker-compose build #36

Closed
miroslavnedelchev opened this issue May 25, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@miroslavnedelchev
Copy link

miroslavnedelchev commented May 25, 2021

Hello, been following this tutorial https://github.com/ethereum-optimism/optimism-tutorial and everything runs smoothly until the part where I have to run docker-compose build command inside ops folder. I also tried install the packages with yarn install --force , but without any result.

My yarn version is 1.10.1.

Attaching screenshot of the error I'm stuck at:
https://ibb.co/25qBxdz

As shown in the screenshot, the first errors appears at @eth-optimism/contracts package.

@smartcontracts
Copy link
Contributor

smartcontracts commented May 26, 2021

What operating system are you using? If windows, this may be related to: ethereum-optimism/optimism#558 which should've been fixed by ethereum-optimism/optimism#953.

Edit: can you also tell me what shell you're using and which version of nodejs you have installed?

@smartcontracts smartcontracts added the bug Something isn't working label May 26, 2021
@miroslavnedelchev
Copy link
Author

miroslavnedelchev commented May 26, 2021

Hey, the already raised issues which you provided are not related to my issue, they're about compiling the smart contracts. I've done that already and my contracts are successfully compiling. I'm at the very end of the tutorial and the issue appears when running docker-compose build command inside ops folder.

Anyway I'm using Windows 10 and my nodejs version is 12.20.1.

I raised the same issue in the Optimism discord at contributing room and I saw other devs are complaining about the same errors, so it's not just me. Maybe something got broken recently in one of the packages? Attaching screenshot of other person which I don't know, but who is having the same issue as me ( He is also using Windows 10 ):

https://ibb.co/RcCtKxK

@smartcontracts
Copy link
Contributor

Ok I'm taking a look at this now. Thanks for the report!

@smartcontracts
Copy link
Contributor

smartcontracts commented May 27, 2021

A PR fixing this issue is open here: ethereum-optimism/optimism#974. Please see the discussion over at ethereum-optimism/optimism#960 for more information and for instructions on how to try the PR out before it's merged.

@smartcontracts
Copy link
Contributor

Should now be fixed by ethereum-optimism/optimism#974. You can use the following instructions to get this working locally:

cd optimism
git checkout develop
git pull origin develop
git rm --cached -r .
git reset --hard
yarn clean
yarn build
cd ops
docker-compose down -v
docker-compose build
docker-compose up

@smartcontracts
Copy link
Contributor

Going to close unless you're still seeing the issue after following those instructions. Thank you again for the report!

@miroslavnedelchev
Copy link
Author

Everything is resolved now. Thanks a lot for the quick support!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants