gilsdav / ngx-translate-router

Translate routes using ngx-translate
132 stars 43 forks source link

LocalizeRouterModule + BrowserTransferStateModule + TransferHttpCacheModule = ERROR: Cannot instantiate cyclic dependency. Injection token HTTP_INTERCEPTORS. #74

Open neverlose-lv opened 4 years ago

neverlose-lv commented 4 years ago

Hi. Here is one bug from the original repository, which I met in your fork. https://github.com/Greentube/localize-router/issues/99

Can you fix it?

Since I don't use any interceptors in my APP, so the problem comes from the mentioned modules: LocalizeRouterModule BrowserTransferStateModule TransferHttpCacheModule

The app was working before I added these 2 modules: BrowserTransferStateModule TransferHttpCacheModule

After these modules were added - I've started to receive the mentioned error: Cannot instantiate cyclic dependency. Injection token HTTP_INTERCEPTORS.

gilsdav commented 4 years ago

Thanks @neverlose-lv, I will try to reproduce this ASAP.

gilsdav commented 4 years ago

Hello @neverlose-lv, I can't reproduce your issue. Can you check the differences between your project and this sample repository ? Check the angular import order too like written here.