Open S-AQ opened 1 month ago
Got same issue
I just had the same issue. I tried deleting all my containers and reran docker compose watch
and everything works now. Not sure why. 🤷
Hi all! This is a sporadic error that occurs when the yarn install fails (which can be for a variety of reasons). Since the yarn cache directory is also cached by the builder, the error persists across builds. Currently, there are only two fixes available:
1) In the Dockerfile, update the RUN
statement with the yarn install
command to also run yarn cache clean
. Run it through one time to get the build working again and then remove the cache clean (so it doesn't wipe the cache each time you build).
or
2) Update the RUN
statement to remove the --mount...
config, which will remove the cache mount. With that gone, the failed build won't carry through to following builds. The tradeoff is future builds will have to redownload all dependencies, rather than only what changed. But, for this project, that shouldn't be a big deal.
I'll start a conversation internally, as we may end up just going with Option 2 here and update the project for everyone. It hasn't affected too many people, but it is tricky to resolve when it comes up.
Hi all, If you are facing this issue try to run this command docker compose up --watch
instead of docker compose watch
, it worked for me.
docker compose up --watch
worked for me but the page in browser is stuck in loading.
docker compose up -d
worked for me and it loaded properly in the browser. but maybe the --watch is not working, will check that.
tks
@IntelliLab2024 are you trying to access to some port? because according to readme.md , navigate to http://localhost
I just started the tutorial and bumped straight into an error.
After I cloned the repository and ran
docker compose watch
from thegetting-started-todo-app
-directory, the container did not run and I was confronted with the following output:After trying this, I tried
docker compose up -d
and that did work. But why does the tutorial saydocker compose watch
while it doesn't work?