Closed alondhe closed 1 year ago
Hello,
I am getting the below error when building using docker compose:
=> ERROR [perseus-frontend build-step 6/6] RUN npm run build:prod 25.8s => CACHED [perseus-frontend stage-1 2/7] RUN apt-get update && apt-get install -y --no-install-recommends op 0.0s => CACHED [perseus-frontend stage-1 3/7] COPY nginx.conf /etc/nginx/nginx.conf 0.0s ------ > [perseus-vocabularydb internal] load build context: ------ ------ > [perseus-frontend build-step 6/6] RUN npm run build:prod: #0 5.490 #0 5.490 > ui@0.0.0 build:prod /usr/src/app #0 5.490 > ng build --configuration production #0 5.490 #0 24.45 An unhandled exception occurred: Cannot find module 'node:assert' #0 24.45 Require stack: #0 24.45 - /usr/src/app/node_modules/@ngtools/webpack/src/resource_loader.js #0 24.45 - /usr/src/app/node_modules/@ngtools/webpack/src/ivy/plugin.js #0 24.45 - /usr/src/app/node_modules/@ngtools/webpack/src/ivy/index.js #0 24.45 - /usr/src/app/node_modules/@ngtools/webpack/src/index.js #0 24.45 - /usr/src/app/node_modules/@angular-devkit/build-angular/src/webpack/configs/common.js #0 24.45 - /usr/src/app/node_modules/@angular-devkit/build-angular/src/webpack/configs/index.js #0 24.45 - /usr/src/app/node_modules/@angular-devkit/build-angular/src/builders/browser/index.js #0 24.45 - /usr/src/app/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js #0 24.45 - /usr/src/app/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/index.js #0 24.45 - /usr/src/app/node_modules/@angular/cli/models/architect-command.js #0 24.45 - /usr/src/app/node_modules/@angular/cli/commands/build-impl.js #0 24.45 - /usr/src/app/node_modules/@angular-devkit/schematics/tools/export-ref.js #0 24.45 - /usr/src/app/node_modules/@angular-devkit/schematics/tools/index.js #0 24.45 - /usr/src/app/node_modules/@angular/cli/utilities/json-schema.js #0 24.45 - /usr/src/app/node_modules/@angular/cli/models/command-runner.js #0 24.45 - /usr/src/app/node_modules/@angular/cli/lib/cli/index.js #0 24.45 - /usr/src/app/node_modules/@angular/cli/lib/init.js #0 24.45 - /usr/src/app/node_modules/@angular/cli/bin/ng #0 24.45 See "/tmp/ng-3EtPm3/angular-errors.log" for further details. #0 24.53 npm ERR! code ELIFECYCLE #0 24.53 npm ERR! syscall spawn #0 24.53 npm ERR! file sh #0 24.53 npm ERR! errno ENOENT #0 24.56 npm ERR! ui@0.0.0 build:prod: `ng build --configuration production` #0 24.56 npm ERR! spawn ENOENT #0 24.56 npm ERR! #0 24.56 npm ERR! Failed at the ui@0.0.0 build:prod script. #0 24.56 npm ERR! This is probably not a problem with npm. There is likely additional logging output above. #0 24.64 #0 24.64 npm ERR! A complete log of this run can be found in: #0 24.64 npm ERR! /root/.npm/_logs/2023-01-26T22_21_00_798Z-debug.log ------ failed to solve: executor failed running [/bin/sh -c npm run build:${env}]: exit code: 1
Please, clarify, on what branch did you run docker compose command.
docker compose
Hi @EugZ -- it was from master branch
Our team made some update. Please, try again.
@alondhe the issue was fixed pleas check it out.
Hello,
I am getting the below error when building using docker compose: