Questions tagged [ng-build]
223 questions
0
votes
1 answer
Angular copying svg and webp files to main folder on build
When I build my Angular project, it is copying some svg and webp files from the assets folder to the main folder and renaming them. I noticed the files that were copying all are in the less (CSS).
How do I prevent the files from being copied and…

NealM
- 58
- 7
0
votes
1 answer
ng build command builds the development environment as default instead of building production
when I run the "ng build" command in a terminal, it builds the development environment, not the production environment.
If I run the "ng build --prod" it works fine. But without changing any default behavior, it is building the development…

vijay s
- 147
- 1
- 4
- 15
0
votes
0 answers
Angular app build not working in Dockerfile
my angular app works fine (both ng serve and ng build), but when I try to dockerize the application using a Dockerfile like this
# Stage 1: Compile and Build angular codebase
# Use official node image as the base image
FROM node:latest as build
#…
0
votes
1 answer
Why I get Out Of Memory in GC during deserialization when i do ng build in Angular 14?
I am working on CI pipeline in my project. My project consists of Angular 14 and ASP.NET Core 6.0 Web API. Currently when I run my pipeline for the below step, I get an error
Error: javascript OOM in GC during deserialization
##[error]Cmd.exe…

Rahul Parab
- 59
- 10
0
votes
0 answers
Compile angular code directly in the browser
I need to compile the angular code directly in the browser so that the output will be same as the output that we get after we do ng-build in the local system.
So basically I need to perform ng-build(or something similar) in the browser itself. After…
0
votes
1 answer
NG Build Command is failing
I'm trying to build angular application using 'ng build --prod'. Below are the information.
ng v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | |…

Container-Man
- 434
- 1
- 6
- 17
0
votes
1 answer
TypeScript errors online while it works on my machine : TS Version mismacth?
I'm trying to build an angular project on Azure DevOps. The build works using ng build on my Visual Studio machine.
Online, with the Angular CLI Task it fails with lots of errors like this one that happens with ng-uikit-pro-standard:
ERROR in…
anon
0
votes
1 answer
url 404 with I go in a specificy url
I have a web app and when I go on :
http://localhost:8080/Test/home
http://localhost:8080/Test/login
It gives me 404, and it doesn't me the home
My app-routing.ts is:
const routes: Routes = [
{
path: environment.URL_LOGIN_ROUTING,…

Picco
- 423
- 2
- 6
- 21
0
votes
0 answers
Unable to write a reference to LoginComponent in C:/Users/lib/pages/login/login.component.ts from C:/Users/lib/users.module.ts
I'm trying to build the application but another error came up... I've checked the app and it's working. Also looked up on the internet for several days and tried all of the methods people used and it's still giving me the error... Please help! Thank…

Yandy
- 95
- 6
0
votes
0 answers
ng build issue : Could not find plugin "proposal-class-properties"
i got this issue when i try to run the command ng build, i think the problem related to babel but i can't find any guide or solution for this problem anyone has encoutered this issue before?
here is the log
[error] Error: [BABEL]…

Yesser Rebai
- 11
- 2
0
votes
2 answers
Upload 'ng build' to S3 Bucket
I am trying to upload my angular-meteor project's 'ng build' to S3 Bucket.
This is my .yml file
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup meteor
…

Istiak Mahmood
- 2,330
- 8
- 31
- 73
0
votes
1 answer
ng generate: An unhandled exception occurred: The "path" argument must be of type string. Received undefined
When I run ng g foo or ng g library foo, I get
An unhandled exception occurred: The "path" argument must be of type string. Received undefined
My log has,
[error] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string.…

Evan Carroll
- 78,363
- 46
- 261
- 468
0
votes
1 answer
why are there typescript errors I only see in "ng build --prod" but not in "ng build" or "ng serve"?
In my Angular 11 application, ng serve and ng build don't report any error. But with npm run ng build -- --prod --output-hashing=all, which happens on the build server, I suddenly see an error:
Error:…

Urs Meili
- 618
- 7
- 19
0
votes
1 answer
How to implement Hot module Replacement in Angular 9?
I am working on a big project and it takes to much time to run that project, so while googling I got an idea of hot module replacement, but I don't know how to implement it so please help me how to implement HRM in angular 9

JAY PATEL
- 11
- 4
0
votes
1 answer
Cannot find module '@angular/compiler' when runnig ng serve
I've updated the dependencies and since then, I've got this error message when run ng serve:
An unhandled exception occurred: Cannot find module '@angular/compiler'
Require stack:
I've tried already this solutions: Cannot find module…

Collin
- 339
- 1
- 3
- 13