Closed othenos closed 3 years ago
@mike-robinson The error appears to be due to an interceptor (see SO questions https://stackoverflow.com/search?q=next.handle%28%E2%80%A6%29.do+is+not+a+function), but this library does not use an interceptor or a do
operator: it only fires the errors on http requests.
Thanks so much for pointing me in the right direction. And yes, it was definitely the httpInterceptor code.
This just started with Angular 10 and 11 (this particular version is 11.0.1). It runs fine in development mode but when running in production mode the translations are not getting loaded. I think the basic indicator is when subscribing to translation.onError an error is displayed "Translation Error TypeError: n.handle(...).do is not a function". Extremely difficult to debug in production mode with no ability to set breakpoints in the code. I hope I am providing enough info. If not, let me know. Thanks for your help.
app.module code imports
app.module code providers
app.component
Firefox console log