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
bug: Interface ‘HTMLMyButtonElement’ cannot simultaneously extend types ‘MyButton’ and ‘HTMLStencilElement’. Named property ‘focus’ of types ‘MyButton’ and ‘HTMLStencilElement’ are not identical #4467
I have searched for existing issues that already report this problem, without success.
Stencil Version
3.0.1
Current Behavior
Can't compile Stencil because of the typescript error
Error: Interface 'HTMLMyButtonElement' cannot simultaneously extend types 'MyButton' and 'HTMLStencilElement'.
Named property 'focus' of types 'MyButton' and 'HTMLStencilElement' are not identical.
Interface 'HTMLMyButtonElement' cannot simultaneously extend types 'MyButton' and 'HTMLStencilElement'.Named property 'focus' of types 'MyButton' and 'HTMLStencilElement' are not identical.
'./src/components.d.ts'
interface HTMLMyButtonElement extends Components.MyButton, HTMLStencilElement {
}
Steps to Reproduce
I want to focus the button element which is inside the my-button, when my-button.focus() is called. Here is the code