-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng build Aot not working #3141
Comments
+1 |
you have to put your routes in a module and import it see thread: #2515 (comment) `import { NgModule } from '@angular/core'; import { HomeComponent } from './home'; export const appRoutes: Routes = [ @NgModule({ |
Hi,
I think it's not finding the lazy loaded module in AoT mode. |
I get How does one go about debugging this "is not an NgModule" error for the actual cause? |
After upgrading to : 1.0.0-beta.20-4 running 'ng serve --aot` shows another error |
How about this issue? I also meet same problem with lazy load module BlogAppModule :
|
I also get this curious error, but only with a very specific setup: using angular2-router-loader and not putting the route config within the AppModule (then, change the router config at runtime), everything works (even if some routes don't load properly then). On the other hand, if I put my lazy route in AppModule, I get the error. |
I am getting this problem even though I am not using AOT. This happens in the latest beta.22-1.
|
same here, not happening on @ngtools/webpack 1.1.9
reproduction repo, just update the package.json for ngtools and angular packages |
What fixed it for me temporarily was to downgrade to angular-cli@1.0.0-beta.21. I had to do that globally and in the local devDependencies for my project. Oddly enough the angular-cli version in angular-cli.json did not matter. |
Same issue |
Closing as obsolete. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
When i run ng build -prod --aot i got this error.
My module is
I couldn't figure out whats wrong with my module. I have been loading this as lazy loading
Angular cli : "1.0.0-beta.19-3",
The text was updated successfully, but these errors were encountered: