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.
I want to the AoT compilation for my angular 2 project.
I have separated my application into js directory where all my generated .js files are and an app directory where I keep my .ts, .html and .css files together.
For the AoT compilation I use…
I have an issue with AOT compilation. When I run a build task it asks me for some new component name. It will be an issue for CI. Here is an Example.
My tsconfig.json file:
{
"compilerOptions": {
"declaration": false,
…
TypeScript compile
tsc -w -p tsconfig-aot.json
get many error
app/admin/appeals_messages/appeals_messages.components.ts(22,5): error TS7008: Member 'userInfo' implicitly has an 'any'…
Can anyone give me a working package.json to make angular2 AOT compile pass?
My package is as below:
"dependencies": {
"@angular/common": "2.3.0",
"@angular/compiler": "2.3.0",
"@angular/compiler-cli": "2.3.0",
"@angular/core":…
I have this pipe:
@Pipe({
name: 'transformNull'
})
export class TransformNull implements PipeTransform {
transform(value: any) {
switch(value){
case null:
case undefined:
case "null":
case "undefined":
…
I have my own Angular 2 library and trying to compile it with Angular2 official ngc compiler. Everything works fine but when I was inspecting code generated, I found sourceMappingURL returns full path. As I am going to ship it I should not want to…
My Angular2 web app consists of
Third party plugins like jquery, pdfjs, e.t.c.
Has services defined!
export class WorkerService{
constructor() {
}
}
When I am building a Dev AOT build using angular cli, there was no problem!
But when I…
I've created a project in angular2 with socket.io to emit / listen socket communication. Everything works fine in JIT ( or npm start) but when I try to compile the code via rollup to lunch it as AOT for production usage It don't work.
Node version :…
I'm using Material-Design-Icons in my project, and I'm importing its css inside my own css file.
This is how it is done:
app.component.css
@import "../node_modules/mdi/css/materialdesignicons.min.css";
materialdesignicons.css
@font-face {
…
i'm new in Angular 2.0
i download project from git.
prerequisites for run the project are these steps :
1) npm install && bower install
2) npm run install-application
-AOT compiles
-Tree shakes
-Bundles app into single file
2) npm run…
Before I upgraded to angular-cli.beta-24 I had this route structure:
+route1
- +subroute1
- +subroute2
- +subroute3
But this fails when having the subroutes defined in the router.module of +route1 because they can't be found now that AOT is…
My error is as follows:
ERROR in [at-loader] assets\app\app.module.ngfactory.ts:28:27
Cannot find module './app.component.ngfactory'.
After I ran npm run build the app.module.ngfactory.ts was created as expected but it created a reference to a…
I am trying to create a seed that is broken up using this mean stack but also incorporating the angular-cli and material2 currently a w.i.p, but I cannot get my npm build:prod working. and it is not building the app.module.ngfactory
I am not using…
I have used AHEAD-OF-TIME COMPILATION,
After compilation AOT folder is generated suceessfully, but issue in app.modulengfactory.ts file, it throws error like
Build:Generic type 'HttpService' requires 1 type argument(s). When I build Project
My…
When I try to deploy my Ionic 2 application to my android device I get the following error:
Error: Error encountered resolving symbol values statically. Function
calls are not supported. Consider
replacing the function or lambda…