Import OpenViduAngularModule in lazyload

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?

I think this problem is because of you somehow accidentally imported the root AppModule into my lazy-loaded module. This caused the root AppRoutingModule to be called again when the lazy-loaded module was loaded, and thus RouterModule.forRoot was called twice.

Please you should be openvidu-angular latest version 2.28.1.
Check the code deeply to find some wrong import.

If you don’t see anything wrong, share a minimal stackblitz demo for checking out your problem.
Regards