Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cyluxx opened this issue Nov 19, 2019 · 1 comment
Closed

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

cyluxx opened this issue Nov 19, 2019 · 1 comment

Comments

@cyluxx
Copy link
Contributor

cyluxx commented Nov 19, 2019

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

maximegris added a commit that referenced this issue Nov 19, 2019
#412 change selector of WebviewDirective
@maximegris
Copy link
Owner

I don't think so.

Good catch 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants