I’m using lazyload in my angular 14 app that uses “openvidu-angular”: “^2.26.0” and “openvidu-browser”: “^2.26.0”
The problem is that library’s module import OpenViduAngularModule.forRoot(openViduConfig),
is throwing the error:
core.mjs:9171 ERROR Error: Uncaught (in promise): Error: NG04007: The Router was provided more than once. This can happen if ‘forRoot’ is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.
Error: NG04007: The Router was provided more than once. This can happen if ‘forRoot’ is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.
** at Object.provideForRootGuard [as useFactory]**
How can I resolve this?