I\'m using angular cli AoT compilation. When I try to make a lazy load component following this tutorial, I got the error below:
ERROR Error
I cloned and reproduced the issue using your posted GitHub code. In order to fix, your @angular/cli global and devDependencies packages must be at 1.7.2
npm remove -g @angular/cli
npm install -g @angular/cli@1.7.2
npm remove @angular/cli
npm add @angular/cli@1.7.2 --save-dev
Now the @angular/cli package in your devDependencies matches the global version and it is set to 1.7.2 where that issue is resolved.