Declare as a Web Component
See original GitHub issueHi GoogleChromeLabs,
I am no expert in web dev or web components, but in my current project when using the dark-mode-toggle
, lit-plugin is throwing the following warning message:
Unknown tag <dark-mode-toggle>.
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' rule.lit-plugin(no-unknown-tag-name)(2322)
Is there anything you could do to fix the above?
Kind regards, Alex
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Web Components - MDN Web Docs - Mozilla
Create a class in which you specify your web component functionality, using the class syntax. · Register your new custom element using the ......
Read more >Introduction - webcomponents.org
Web components are a set of web platform APIs that allow you to create new custom, reusable, encapsulated HTML tags to use in...
Read more >Write your first web component - Opensource.com
Web components are a collection of open source technologies such as ... Attributes are declared observed attributes using a static ...
Read more >An Introduction to Web Components - Academind
Learn how to get started with web components to build re-usable components (for all frameworks!) ... Declare the watched attributes:.
Read more >Creating a web Component With Vanilla JavaScript - Section.io
What are web components · Custom elements: these APIs allow you to define and create custom elements to provide the desired UI. ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You may need to reference the dark mode module inside the same script, by doing one of:
Thanks, @NotWoods, for the help ❤️ and thanks, @aress31, for confirming this solved your issue.