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
in my case I have faced it when tried to concat one routes array to another:
export const businesslogicState: Routes = BUSINESSLOGIC_ROUTES.concat(gamesRoutes);
each parts of concat were Route[]
changing one element array gamesRoutes to Route object itself didn't help, still getting the same error.