NullInjectorError: NullInjectorError: No provider for _HttpClient! | Error Solved | Angular 17

preview_player
Показать описание
In this video, I will showcase how to get rid of this issue NullInjectorError: NullInjectorError: No provider for _HttpClient! in angular 17. also I will explain how to integrate http api in correct way. for resolving this issue you need to follow below steps.

2. Import provideHttpClient.
3. Ensure that provideHttpClient is included in the providers array of your configuration.

By ensuring provideHttpClient is included in the appConfig and that appConfig is used in your main module, you should be able to resolve the NullInjectorError: No provider for _HttpClient! error.
Рекомендации по теме
Комментарии
Автор

I couldn't thank you enough, I was breaking my head over the weekend trying to figure this out. Thank you so much

agentp
Автор

many thx for that. I was searching for that since two days....

capt_future_
Автор

what if we dont have an app.config file

brianginger
Автор

thank you, you saved me hours of research😎

darwinkamanga