0

I have used angular-cli for scaffolding.I have app module which is bieng loaded by default, while other modules are lazily loaded.

while running:

ng build -prod --aot 
14% building modules 36/37 modules 1 active ...de_modules/css-loader/lib/css-base.js**OrderModule** is not an NgModule
Manish
  • 2,092
  • 16
  • 18
  • What are we supposed to do with this? There's no code and no question. – John Baird Nov 06 '16 at 17:04
  • @JohnBaird , my first question is Lazy loading supported in aot compilation? If yes, i am getting this error while aot compile, anyone has encountered it before? – Manish Nov 06 '16 at 17:41
  • Encountering the same, after updating all packages to the newest version.. "Appmodule is not an ngModule".. Did you found the solution to this?? – DutchKevv Dec 02 '16 at 23:24

1 Answers1

0

Yes.It is supported in latest version of angular-cli. update your cli to latest version.

npm uninstall -g angular-cli
npm cache clean 
npm install -g angular-cli@latest
Manish
  • 2,092
  • 16
  • 18