I currently have a project where I have an angular workspace in which I have created an angular web app. Now I also needed an app and created an angular ionic app. I wanted to reuse my existing authentication service which uses AngularFireauth and AngularFirestore so I created a library and extracted the service. When using the service from the library in the angular web app everything works fine. But trying to inject the service in a page from the ionic app I get the error inject() must be called from an injection context. When moving the service from the library to the ionic app and just using it from there it works.
Ionic v.5.0.5
Angular v.9.0.6
Maybe someone has an idea.
Thanks for your help!