Skip to content

Template parse errors: 'webview' is not a known element #412

@cyluxx

Description

@cyluxx

Hello,
I am trying to use the webview, but it does not seem to work.

Steps to Reproduce

  1. clone repository
  2. npm i
  3. add webviewTag: true to BrowserWindow in the main.ts file as described here
  4. append <webview src="https://www.github.com/"></webview> to home.component.html
  5. npm start

Then I receive the following error:

Uncaught Error: Template parse errors: 'webview' is not a known element: 1. If 'webview' 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. 

What I've tried so far

After some investigation I found out that the selector of the WebviewDirective is declared as an attribute directive. Is this intended? Is there a reason for that?

Appendix:

Related to #332

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions