Questions tagged [angular2-aot]

Use angular2-aot for questions related to the Angular2 ahead-of-time compiler, which allows developers to deploy pre-compiled JavaScript code and HTML5 markup to the browser rather than TypeScript and Angular templates.

References

431 questions
-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
1 answer

Angular AOT build failing because of Private member

I am working on a migration project where i have existing UI application codebase which is developed on Angular 8. When i am doing normal build (ie. ng build) i am able to build successfully but the deployed artifacts size is more. Eg: main.js (4.5…
Bikshu s
  • 389
  • 4
  • 14
-1
votes
1 answer

ng build --aot fails but ng build works fine with installed library

We have a library project that lives in an nx project that we publish to npmjs. It's a collection of components derived from @angular/material. The library is published to npmjs @vdlx/vdl-angular. Our build uses ng-packagr to build each of the…
-1
votes
1 answer

What is the meaning of pre-compiled in AOT (Angular)

I am going through the Angular documentation for AOT. I came across the word pre-compiled, but I'm unable to understand the meaning of it. The line in the Angular documentation is: With AOT, the browser downloads a pre-compiled version of the…
yash
  • 203
  • 4
  • 12
-1
votes
1 answer

Is AOT (ahead of time) the default compilation in Angular 7

I have read in a tutorial that says AOT the default compilation in Angular 5 and above. I am a bit confused about this. I searched on the internet and couldn't find a precise answer.
-1
votes
2 answers

Angular 2 - Build with AOT : Javascript heap out of memory

I am developing an angular2 project. I run below command to build AOT package. ng build --aot --prod but it returns errors: 68% building modules 1135/1172 modules 37 active ...cy/node_modules/rxjs/operator/last.js <--- Last few GCs ---> …
-1
votes
1 answer

ng build --aot with out prod mode is not compiling in AOT

Can we use this AOT mode for dev or qa mode by passing --aot flags in ng build command like "ng build --env=dev --aot". Actually I have tried but its not compiling with 'AOT'? Could any one suggest some solution?
-1
votes
1 answer

Consuming Custom Angular AOT Component Library - Unexpected token t in JSON

I have a component library that I've created in Typescript and Angular 2. This library is consumed by my web applications via npm. The component library itself builds using both JIT and AOT compilation, but the web application which consumes it will…
-1
votes
1 answer

Compilation issue while creating AOT angular 2 sample

Compilation issue while creating AOT angular 2 sample While run command "npm run rollup -c rollup-config.js" "can not resolve entry (app/main-aot.ts)"
Abinaya
  • 364
  • 2
  • 6
  • 16
-1
votes
1 answer

Angular2 angula-cli AOT support

OS? Mac OSX Yosemite Versions. angular-cli: 1.0.0-beta.21 node: 6.3.0 os: darwin x64 The log given by the failure. (have many of this) Exported variable 'slideInPartial' has or is using name 'AnimationEntryMetadata' from external module…
DanDuh
  • 500
  • 1
  • 5
  • 17
-2
votes
1 answer

Angular bundle js files to html header

I use Angular 5 AOT to build my website. It work well but It has low score on google spacespeed. After I have spend lots of time to troubleshoot, I wonder why bundled js files are always at the bottom of index.html. How do I bring those bundled js…
R.Kaka
  • 167
  • 6
  • 16
1 2 3
28
29