robisim74 / angular-l10n

Angular library to translate texts, dates and numbers
MIT License
380 stars 56 forks source link

TypeError: Cannot read property 'get' of null TypeError: Cannot read property 'get' of null at L10nTranslationProvider.getRequest #263

Closed jaroslawmajdzinski closed 5 years ago

jaroslawmajdzinski commented 5 years ago

I'm submitting a... [ ] feature request [x ] support request



**Expected behavior**

**Actual behavior**

TypeError: Cannot read property 'get' of null TypeError: Cannot read property 'get' of null at L10nTranslationProvider.getRequest

**Steps to reproduce the behavior**

StackBlitz Template: https://stackblitz.com/edit/angular-l10n

Angular 8.2.4
rxjs 6.5.2.

Hi! First time when I'm asking for support then please forgive me.
robisim74 commented 5 years ago

Hi, are you importing Angular HttpClientModule in your AppModule?

jaroslawmajdzinski commented 5 years ago

Hi !

Thanks, Roberto, for your answer. Yes, you are right - I didn't do, then after I added HttpClientModule everything is alright. I missed this small thing.

Jarek

pt., 6 wrz 2019 o 15:08 Roberto Simonetti notifications@github.com napisał(a):

Hi, are you importing Angular HttpClientModule in your AppModule?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/robisim74/angular-l10n/issues/263?email_source=notifications&email_token=AI64NE34WWDHYZJNPFT5OQTQIJI57A5CNFSM4IUIGTVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6CZH2Q#issuecomment-528847850, or mute the thread https://github.com/notifications/unsubscribe-auth/AI64NEY6AKMD4YYSQTLLZIDQIJI57ANCNFSM4IUIGTVA .