In Angular 5 I'm having an error using: ng serve --aot
if I build with JIT (at-loader) then everything is working, but I need AOT.
Here you can see the discussion: https://github.com/angular/angular/issues/20639
Help me, please.
In Angular 5 I'm having an error using: ng serve --aot
if I build with JIT (at-loader) then everything is working, but I need AOT.
Here you can see the discussion: https://github.com/angular/angular/issues/20639
Help me, please.
For compiling / Livesync, you no need to use --aot
flag.
To Build your project, use
ng build --prod --aot
if you use --aot
while serving, it will build your whole project with ContantInvalidating. By doing only ng serve
it will run with AOT
functionality
angular v5+ have default aot so you can easily build your app with using for production ng build --prod