In Angular 17 where the standalone true option is set by default, the app.config.ts file is generated in src/app/ and provideHttpClient(). We can be added to the list of providers in app.config.ts
Reference links –
Nullinjectorerror no provider for httpclient Angular 17
YouTube link for this Video – YouTube link