Code Monkey home page Code Monkey logo

Comments (7)

Carvalho96v2 avatar Carvalho96v2 commented on August 19, 2024

Hey, @knaggita , not sure about the react build failing, but I've occasionally experienced issues with docker-compose builds failing and dealt with them by restarting Docker, have you tried that?

from baobab.

knaggita avatar knaggita commented on August 19, 2024

Hey @Carvalho96v2, yes I did restart Docker but nothing changed. I still get that error.

from baobab.

KaleabTessera avatar KaleabTessera commented on August 19, 2024

Hi @knaggita ,

Could you please send attach the whole stack trace.

Also just confirm which docker-compose file you ran (which folder)?

from baobab.

knaggita avatar knaggita commented on August 19, 2024

Hello @KaleabTessera

I ran docker-compose build in the Baobab folder.

Below is the trace

db uses an image, skipping
redis uses an image, skipping
Building webapp
Step 1/10 : FROM node:8 as build-deps
---> 55b43107a63d
Step 2/10 : WORKDIR /webapp
---> Using cache
---> 7287cb9c6aa7
Step 3/10 : COPY package.json yarn.lock ./
---> Using cache
---> e33e82ce7781
Step 4/10 : RUN yarn
---> Using cache
---> 2cae64fe483a
Step 5/10 : COPY . ./
---> Using cache
---> 64f43c4c83f1
Step 6/10 : RUN yarn build
---> Running in 644f2ab6ff31
yarn run v1.12.3
$ react-scripts build
/bin/sh: 1: react-scripts: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: Service 'webapp' failed to build: The command '/bin/sh -c yarn build' returned a non-zero code: 1

from baobab.

KaleabTessera avatar KaleabTessera commented on August 19, 2024

Okay I tried to replicate the error and I was unable to.

Have you tried:

  1. Removing the images for Baobab and having them download again?
docker image ls

Then find the image of the Baobab project images and delete them. E.g:

docker image rm baobab_webapp baobab_web 

Then build again.

  1. If the above doesn't work. Try upgrading your docker and docker-compose versions.

from baobab.

KaleabTessera avatar KaleabTessera commented on August 19, 2024

@knaggita , any luck with the above?

I think the issue is the cached node modules -

Step 4/10 : RUN yarn
---> Using cache
---> 2cae64fe483a

So the above should have fixed it.

from baobab.

KaleabTessera avatar KaleabTessera commented on August 19, 2024

Closing this ticket.

from baobab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.