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
{{ message }}
Repository navigation
bug: In spec tests : ReferenceError: ShadowRoot is not defined #3260
I have searched for existing issues that already report this problem, without success.
Stencil Version
2.14.0
Current Behavior
this.el.getRootNode() instanceof ShadowRoot
I try to know if my custom component is in a shadowDOM.
It works well but not in specs test.
I have this error ReferenceError: ShadowRoot is not defined
Expected Behavior
No error in test when we use ShadowRoot
Steps to Reproduce
Try to test if the host element is in a shadowDOM context this.el.getRootNode() instanceof ShadowRoot
I just wanted to chime in that I was enduring shadowRoot not defined as well (no reference or clue or even what is different as the error information isn't helpful at all), however the work around provided here fixed it.
Activity
rwaskiewicz commentedon Mar 7, 2022
Thanks! I've verified this is an issue and have labeled this to be ingested into our team backlog!
reessm01 commentedon Mar 24, 2022
I just wanted to chime in that I was enduring shadowRoot not defined as well (no reference or clue or even what is different as the error information isn't helpful at all), however the work around provided here fixed it.
tanner-reits commentedon Jun 26, 2024
A fix for this was included in today's v4.19.0 release!
chore(deps): update dependency @stencil/core to v4.19.0 (#29666)