You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the NotificationService is used in an SSR-configured application it will throw an ERROR ReferenceError: document is not defined. upon initialization. It seems that the notification doesn't check if the document is available, like our Dialogs package.
The error seems to be caused by an incorrect application set up - document is referenced in the app.component.ts providers. Removing it and setting the appendTo option of the NotificationSettings resolves the issue.
Describe the bug
If the NotificationService is used in an SSR-configured application it will throw an
ERROR ReferenceError: document is not defined.
upon initialization. It seems that the notification doesn't check if the document is available, like our Dialogs package.To Reproduce
Open and run the local project.
A17-notifications-ssr (1).zip
Workaround
Checking the platform before initializing the NotificationService:
The text was updated successfully, but these errors were encountered: