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
When I try to make a component, I get some type errors that make it look like TS doesn't understand that CustomElement extends HTMLElement. For example in this code:
I get an error on addEventListener and on TestComponent inside customElements.define
Errors are Property 'addEventListener' does not exist on type 'TestComponent'.
Argument of type 'typeof TestComponent' is not assignable to parameter of type 'CustomElementConstructor'.
Type 'TestComponent' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, dir, and 302 more.
The text was updated successfully, but these errors were encountered:
When I try to make a component, I get some type errors that make it look like TS doesn't understand that CustomElement extends HTMLElement. For example in this code:
I get an error on
addEventListener
and onTestComponent
insidecustomElements.define
Errors are
Property 'addEventListener' does not exist on type 'TestComponent'.
The text was updated successfully, but these errors were encountered: