I\'m converting a project to use angular cli and everything is working (once it\'s build) but i\'ve got a weird behaviour during build.
with ng serve I
ng serve
Another thing to check is if you're mocking/stubbing any classes in for dummy-components on a route declaration. It seems it can happen for mocked RouteGuards as well.