I had issues after the 2.2.1 update and tried all kinds of things to get the web to build but its still not working. I deleted all docker containers, tried editing the configmap, etc. to no available. Is it possible to recreate the initial web container? Right now I try building the web but it hangs and never complete it even after many hours.
How can I recreate the web container? Here’s what I tried:
Sending build context to Docker daemon 471MB
Step 1/15 : FROM node:12.18.3-buster as build
** —> 8de87569b730**
Step 2/15 : ENV NODE_OPTIONS=–max_old_space_size=3072
** —> Using cache**
** —> 0c87d5c58ebd**
Step 3/15 : WORKDIR /app
** —> Using cache**
** —> d1b04e716b52**
Step 4/15 : COPY package.json /app/package.json
** —> Using cache**
** —> e3a0665230dc**
Step 5/15 : RUN npm config set unsafe-perm true && npm install -g node-gyp && npm install --loglevel=error
** —> Using cache**
** —> 7fee45b0c679**
Step 6/15 : COPY . /app
** —> 2c20884cd867**
Step 7/15 : RUN npm run build
** —> Running in 5776ffe614ae**
[email protected] build /app
npm run build-css && react-scripts --max_old_space_size=3072 build
[email protected] build-css /app
node-sass-chokidar src/ -o src/
Rendering Complete, saving .css file…
Wrote CSS to /app/src/index.css
Wrote 1 CSS files to /app/src/
Creating an optimized production build…
After running that, I see with docker images that there is an image created but its not getting named. So I use docker tag and tag it. I then try to apply it and then I get errors such as:
Error: Cannot find module '/app/tools/general/random.js’
** at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)**
** at Function.Module._load (internal/modules/cjs/loader.js:841:27)**
** at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)**
** at internal/main/run_main_module.js:17:47 {**
** code: ‘MODULE_NOT_FOUND’,**
** requireStack: []**
}
So from what I understand, its not completely build…