You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above code, HTMLElement; document; this.appendChild; customElements.define are all not defined.
A simple solution would be to add "lib": ["es2016", "dom"] to the tsconfig file generated in public/ folder, like so:
When writing web components (aka custom elements), I need to write something like:
In the above code,
HTMLElement
;document
;this.appendChild
;customElements.define
are all not defined.A simple solution would be to add
"lib": ["es2016", "dom"]
to thetsconfig
file generated inpublic/
folder, like so:The text was updated successfully, but these errors were encountered: