Questions tagged [ng-build]

223 questions
0
votes
1 answer

`ng build --prod` fails with `ERROR in TypeError: Cannot read property 'version' of null`

I can't successfully get my project to build with the --prod flag [it builds fine otherwise]. I can temporarly add maxMetadata && to the if statement where the error occurs to null check and get passed that point (metadata_reader.js line 66) and…
MapLion
  • 1,041
  • 1
  • 12
  • 38
0
votes
1 answer

Angular 5 deployment to IIS server , navigation routes from dist folder not working

From what I understand, if I do an ng build and deploy the code generated in the "dist" folder, then all the typescript and routing is all ready to work?! I deployed code in dist folder and the home page comes up just fine as soon as I click on a…
user9036522
0
votes
1 answer

ng build --watch is not outputting dist directory if there is a transpilation error

I have this command in my terminal $ ng build --watch Date: 2018-01-02T21:42:45.851Z Hash: f72a8ce7baf664dc5d5a Time: 3260ms chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kB…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
-1
votes
1 answer

.Angular index.html only working after ng build

My angular router works very well on localhost:4200 but not working after ng-build. Only showing index.html after ng-build.
-1
votes
1 answer

angular aot build showing type of undefined errors in node_module typescript.js

when i run ng build command with prod=true and aot=true these errors show up. ERROR in : TypeError: Cannot read property 'type' of undefined at Object.getEffectiveTypeAnnotationNode…
-1
votes
2 answers

execute ng build --prod twice without changing sourcecode

Hi can someone explain me what happens if I run ng build --prod twice without changing anything. Is there some optimation behind or gets every file transpiled/recompiled no matter if there is a file change or not. Can someone explain the generated…
Cowas
  • 328
  • 2
  • 12
-1
votes
2 answers

I'm no getting to building an angular app

Can anyone help with the problem below? I'm stuck in this for 3 days. I really appreciate I tried many things, but it seems it is getting worse and worse. I'm trying to build an angular app with ng build --prod, but I'm getting the following error:…
Wagner Vieira
  • 351
  • 4
  • 16
-1
votes
1 answer

blank screen when i hit ng build command

i have try all possible ng related commands bt nothing will happen only blank screen apperas with some text at bottom my node version 8.16.1 VS code version 1.38.1
Pawan Sahu
  • 47
  • 9
-1
votes
3 answers

Can't bind to 'kind' since it isn't a known property of 'ngx-fs-icon'

I am using Akveo/ngx-admin template. I have created some of my own modules and in it and then tried running production build on it but it gave me some errors. So i had to create a shared module and i put all the modules inside the imports of shared…
Ehsan Nissar
  • 643
  • 2
  • 13
  • 35
-1
votes
1 answer

node_modules/angular2-qrscanner/angular2-qrscanner.d.ts, found version 4, expected 3, resolving symbo

We get Metadata error which is hindering our deployments. As it does not allow ng build. Below is the configuration ; followed by full error trace. ERROR in Error: Metadata version mismatch for module…
Aditya
  • 67
  • 1
  • 12
-1
votes
1 answer

Material Icon doesn't render in Angular production build

Material Icons are not rendered properly in production when in ::before/::after content. The font property disappears on production build. I have imported Material Icons…
Daniel
  • 10,641
  • 12
  • 47
  • 85
-1
votes
1 answer

ng build is taking too much time on every single change

is it possible to disable webpack chunk optimization or sealing in ng build application in development environment . I am facing an issue is that whenever i made a single change in my angular (ts, html, css....), the rebuild is happening very slow.…
Atul
  • 521
  • 1
  • 7
  • 20
-2
votes
1 answer

Ho to deploy angular app with ng build --aot?

I have a website created using angular in localhost everything works fine, in heroku also works fine, now I want to deploy the page to my server, Here is repo : agency repo I run the following command ng build --aot Unfortunately, I get the…
The Dead Man
  • 6,258
  • 28
  • 111
  • 193
1 2 3
14
15