StaticInjectorError(a)[t -> t]: NullInjectorError: No provider for t
问题 I am using Angular 8 with Electron to build a desktop application. I am using nebular theme and have created 2 custom modules and so far they are working fine but i created a sharedModule to export a component from one module for another module but on clicking the respective component making use of that shared Module it started showing me this error StaticInjectorError(a)[t -> t]: StaticInjectorError(Platform: core)[t -> t]: NullInjectorError: No provider for t! Here is my code Shared Module