Questions tagged [ng-build]
223 questions
3
votes
2 answers
ng build failed: sass error: null is not a color
Im working a project which now updates to angular 15 and while trying to setup a test environment, build/start throw this error for what seems to be related to material and themes and sass.
it also seems to be related to progress bar.
this is what i…

A-B
- 29
- 5
3
votes
3 answers
Angular routing not working after running ng build at deployment
not sure what im doing wrong here, im fairly new to Angular and im fumbling along somewhat with regards to routing.
I'm running Angular 12.2.0 and have setup routes on localhost. I'm just navigating between two pages at the moment to see how it…

James
- 102
- 1
- 1
- 8
3
votes
1 answer
ng build --configuration production takes 30+ mins on Jenkins but 5-6 mins on local
I have an Angular Application getting built on Jenkins Server which is running very slow (taking more than 30 mins). Command used: ng build --configuration production
However when i run the same command on my local windows machine, it completes in…

chingupt
- 403
- 2
- 7
- 19
3
votes
1 answer
Request Error: 'Referrer Policy: strict-origin-when-cross-origin' in Angular when build in --prod mode
I deployed my Angular application to https domain. And the API domain is http.
When I build my Angular app using --prod I got an error in requests that Referrer Policy: strict-origin-when-cross-origin, However when I build without --prod the…

Ahmed Ibrahim
- 256
- 1
- 2
- 12
3
votes
1 answer
ng command giving error, SyntaxError: Unexpected token ). centos 7
I faced an issue on the centOs7 server while checking the version of angular-cli by ng -v.
I got the output as below:
/usr/lib/node_modules/@angular/cli/bin/ng:23
);
^
SyntaxError: Unexpected token )
at createScript (vm.js:56:10)
at…

Mayank Chauhan
- 99
- 1
- 7
3
votes
1 answer
Angular production build can't load - Loading module was blocked because of a disallowed MIME type (“text/html”)
I built my application running ng build --configuration=production and uploaded it (manually via FTP) to a server (I tried two different ones). Accessing the root like myurl.com works fine, but whenever I want to directly access a subpage, for…

kWin
- 31
- 1
- 5
3
votes
0 answers
How to exclude specific folder while creating angular build
I have below folder structure of my angular application
web\src\app\main
in main folder I have folder for different modules like
web\src\app\main\userinfo
web\src\app\main\packages
Location of tsconfig.app.json is scr/tsconfig.app.json
I want to…

Rajesh Khore
- 121
- 5
3
votes
0 answers
Angular 7: build app with external config being excluded from the bundle
This is probably a familiar topic App.settings - the Angular way? but tbh, after a day of a researching I couldn't find a satisfying solution, hence I ask the question here.
Goal is to build an application once, and deploy many times via…

belzebu
- 810
- 7
- 25
3
votes
1 answer
Angular Library is not able include third party library in the bundle
My requirement is to create libraries which have their own view and according to a User's configuration, the library will be fetched from AWS S3 Bucket and included in the final app on runtime.
See this example. I am able to add the…

Torab Shaikh
- 456
- 1
- 5
- 17
3
votes
3 answers
Angular 7 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
My project is big. In the last build I added big chunk of new functionality. Building process giving me this error log.
Changing --max-old-space-size=4096 not working for me.
{ Error: Command failed: ng build --prod --configuration=config…

Arayik
- 114
- 2
- 10
3
votes
2 answers
Angular API fatal error handler returned after process out of memory
I'm deploying angular 7 app to Azure, an error
API fatal error handler returned after process out of memory
is appear when run ng build --prod even in local system when running ng build --prod no error found except some warning
WARNING in…

Kenana Reda
- 430
- 1
- 9
- 24
3
votes
1 answer
base href taking incorrectly and no idea from where its taking
I am taking a base url in html as
When I run ng build --prod and host the generated files in the server,
I get the following error.
The prob is it is not adding slash after prjFolder and hence…

Sujay U N
- 4,974
- 11
- 52
- 88
3
votes
1 answer
404 file not found when reloading an angular SPA published on github page
I am recieving error when reloading my angular application published on gh pages. The error is:
404
File not found.
The site configured at this address does not contain the requested file.
I have built my app using ng build --prod.
Github repo:…

chirag
- 95
- 1
- 7
3
votes
1 answer
Angular 5 production build errors out on inherited properties marked as Protected in Typescript - 'property does not exist on type' *Component
Angular 5.2.8
Typescript 2.6.1
CLI 1.6.8
My app generates build files if run in normal development mode using ng serve. However, when I run `ng build --prod I get below errors
Property 'status' is protected and only accessible within class…

nsk
- 1,413
- 5
- 24
- 34