I\'m trying to lazy load Angular 2 modules with the router, and I\'m having this error:
error_handler.js:50 EXCEPTION: Uncaught (in promise): Error: C
It seems that the angular-cli renderer has problems with lazy loading when you use export default class SomeModule { } ...along with a few other nuances.
This is what I did to resolve the same "Error: Cannot find module..." I was getting on Heroku deployment:
loadChildren: 'app/main/some-module/some-module.module#SomeModule'export default class SomeModule { } to export class SomeModule { }