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

lit-route lit-plugin typing #54

Closed
KhoaVo opened this issue Mar 21, 2021 · 4 comments
Closed

lit-route lit-plugin typing #54

KhoaVo opened this issue Mar 21, 2021 · 4 comments
Labels

Comments

@KhoaVo
Copy link

KhoaVo commented Mar 21, 2021

I'm trying to render in my lit template but the lit-plugin analyzer is complaining that that tag is not registered .

Unknown tag <lit-route>.
  Check that you've imported the element, and that it's declared on the HTMLElementTagNameMap. If it can't be imported, consider adding it to the 'globalTags' plugin configuration or disabling the 'no-unknown-tag'

Looking at the route.ts file I don't see the component registered into the HTMLElementTagNameMap
Something like the following

declare global {
  interface HTMLElementTagNameMap {
    'lit-route': Route ;
  }
}

Is there something I'm missing to be able to render this element in lit?

@stale
Copy link

stale bot commented Apr 5, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 5, 2021
@fernandopasik
Copy link
Owner

How did you reproduce that error? are you running that tool in your application repo?

@stale
Copy link

stale bot commented Apr 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 21, 2021
@stale
Copy link

stale bot commented May 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label May 6, 2021
@stale stale bot closed this as completed May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants