Here the scenario,
I have a mainpage with 3 routes (child of mainpage each lazy loaded).

Here the auxiliary component has one primary outlet and other auxiliary as
<router-outlet name="auxone"></router-outlet>
and this is how my mainpage.route file looks
Now my auxilary route loads perfectly and im able to route in primary outlet with any problem. But as soon as i try to load a route in the auxiliary outlet like this

& try to navigate them using
(Aux route has one child as its own, and im trying to load another route as another child for the same aux)
i get errors:
Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'mainpage/aux'
As im unable to see any documentation on how to load and route aux routes lazy loading im at my wits end finding out how to make this work.
where exactly am i going wrong?


You should not and can not include the
outlet:parameter on the lazy load path. the lazy loaded routes are hidden away from the eagerly loaded application by design.Instead you should build a module for outlets components and it should have its own routing configuration. In that router configuration you can set up a route to your Auxiliary outlets.