Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[String]: Angular 7 :     Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[String]:    StaticInjectorError(Platform: core)[String]:      NullInjectorError: No provider for String!  

I faced the above issue when compiling my angular 7 project. below solution worked for me.