Wednesday, 27 November 2019

'dialog' is not a known element in Angular 9 with Ivy

After upgrading to Angular RC.3 and switching to Ivy in a project I get the following error:

Error: dialog is not a known element: 1. If dialog is an Angular component, then verify that it is part of this module. 2. To allow any element add NO_ERRORS_SCHEMA to the @NgModule.schemas of this component.

Indeed I have a markup like this using a <dialog>-element:

<dialog [attr.open]="open ? '' : null"></dialog>

Even though the browser coverage is not 100% dialog is still a valid HTML element.

Did they miss to support it? Is this a bug in Anglaur or Ivy? Can I only use the dialog-element, when I also use NO_ERRORS_SCHEMA in the components?*

* Which I actually don't want to activate.



from 'dialog' is not a known element in Angular 9 with Ivy

No comments:

Post a Comment