I am encountering a circular dependency issue with my AuthenticationService and UserService. The UserService is included within the AuthenticationService, but when I try to use AuthenticationService in UserService as shown below:
constructor(private authService: AuthenticationService){}
An error message stating "Circular dependency detected" appears, pointing to the relationship between src/app/core/authentication/authentication.service.ts, src/app/shared/services/user.service.ts, and src/app/core/authentication/authentication.service.ts. Both services are declared in the app module providers array, so I am confused as to why this circular dependency is occurring. Can anyone shed light on this for me?