Kendo-angular: NotificationService cannot be injected in ErrorHandler

Created on 17 Dec 2018  路  2Comments  路  Source: telerik/kendo-angular

I'm submitting a...

  • Bug report

Current behavior


Injecting the NotificationService class in an ErrorHandler class triggers the following error:

Provider parse errors:
Cannot instantiate cyclic dependency! ApplicationRef

Expected behavior


The NotificationService should be injectable in an ErrorHandler class, because it is likely that the developer wants to notify the user of an error.

Minimal reproduction of the problem with instructions


https://stackblitz.com/edit/angular-3yegcw

Workaround

Until this issue is fixed, the NotificationService can dynamically be injected whenever the ErrorHandler needs to report the error. See this example for a working demo.

Bug notification

All 2 comments

The fix is available in the latest dev version of the package.

Shipped with v1.2.0 of the package.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patrykp57 picture patrykp57  路  3Comments

ipeshev picture ipeshev  路  3Comments

fgladisch picture fgladisch  路  3Comments

svetq picture svetq  路  3Comments

simon11196 picture simon11196  路  3Comments