Failed to build the image // hollaex web --setup

Step 8/16 : RUN npm run build
 ---> Running in 3515e2a88dc1

> [email protected] build /app
> craco --max_old_space_size=4096 build

Creating an optimized production build...
The prop value with an expression type of ChainExpression could not be resolved. Please file issue to get this fixed immediately.

                    The build failed because the process exited too early.
                    This probably means the system ran out of memory or someone called
                    `kill -9` on the process.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `craco --max_old_space_size=4096 build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2024-04-11T23_58_19_960Z-debug.log
The command '/bin/sh -c npm run build' returned a non-zero code: 1
Failed to build the image.
Please confirm your configurations and try again.
If you are not on a latest HollaEx Kit, Please update it first to latest.

1 Like

Hi there.

This could be an out-of-memory issue, which means your system didn’t have enough RAM to build the web image.

How much RAM does your system have?

If you are running it on a Mac, please also make sure that your “Docker for Mac” has enough memory allocation. There’s a chance that the Docker daemon is not using the full memory capacity, which is a default behavior on Mac.

1 Like