-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with AOT Compiler in Angular CLI #1
Comments
Same here :( |
@shuryyy I have found an article on getting libraries ready for AOT. I hope to have a fix for this soon. https://medium.com/@isaacplmann/getting-your-angular-2-library-ready-for-aot-90d1347bcad#.7xjmfhv64 |
524d976 (v0.2.0) adds AOT support. Changes have been tested with Angular CLI AOT compilation. |
Hi @kuuurt13 I tested it with angular-cli 1.0.0-rc.0 And I still have an error.
I also have a warning
Strang because I can see the export in your index.ts ... |
Here is the complete error
|
@shuryyy I just tested again by creating a fresh app with angular-cli and it was compiling for me. Can you run As for the |
@shuryyy sorry I over looked that you said you are on 1.0.0-rc.0. I will upgrade and see if I run into any issues. |
@shuryyy I just updated angluar-cli to 1.0.0-rc.0 and ran app.module.ts import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { BlockUIModule } from 'ng-block-ui';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
BlockUIModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { } app.component.ts import { Component } from '@angular/core';
import { BlockUI, NgBlockUI } from 'ng-block-ui';
@Component({
selector: 'app-root',
template: `
<block-ui>
<h1>{{ title }}</h1>
</block-ui>
`,
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app works!';
@BlockUI() blockUI: NgBlockUI;
constructor() {
this.blockUI.start();
}
} This was with creating a brand new app with |
Re @kuuurt13, So I just did the same but with the option ng new project --ng4. And this is the issue I think...
"name": "project", |
@shuryyy, I currently wasn't supporting 4.x but I just added support, see #6 for details. Can you try testing your 4.x app after running Since this issue was originally for AOT compiling targeting the current released of angular (2.x) I am going to close this. If you can just reply back to #6 with you findings that would be great. I also created a new issue for the warning you are currently seeing for NgBlockUI, see #7. |
When using AOT compiler in Angular CLI it throws the following exception:
The text was updated successfully, but these errors were encountered: