While building a WebComponent using Lit-Element and Typescript I got this rather cryptic error message.
The error occurs when I try to set the checked
attribute to an element.
The culprit is something similar to this:
return html`<input type="radio" ${(testValue==0 ? "checked":"")}>`
The error message is
TypeError: Failed to set the 'currentNode' property on 'TreeWalker': The provided value is not of type 'Node'.