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
Describe the bug
When using the construct-style-sheet for instance in JSDom, then in some cases, document seems to be undefined. There was an if condition introduced with a fix:
Describe the bug
When using the
construct-style-sheet
for instance in JSDom, then in some cases,document
seems to be undefined. There was an if condition introduced with a fix:construct-style-sheets/src/Location.ts
Line 219 in bdd71c7
This will throw an error when
document
is undefined:Error: Uncaught [ReferenceError: document is not defined]
To Reproduce
Steps to reproduce the behavior: Is not as easy to provide a reproduction, but the bug is clear, I guess.
Expected behavior
The error should not be thrown in non-dom-like environments.
In order to solve the problem, the if condition needs to be
Additional context
So far, this problem was detected in JSDom environment when running custom components in Vitest.
The text was updated successfully, but these errors were encountered: