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
All observer controllers crash when used in SSR as their constructors don't count on the fact that the window object is not available in the server environment.
Reproduction
Any component that uses some observer controller will fail in SSR:
Which package(s) are affected?
Observers (@lit-labs/observers)
Description
All observer controllers crash when used in SSR as their constructors don't count on the fact that the window object is not available in the server environment.
Reproduction
Any component that uses some observer controller will fail in SSR:
Workaround
You could just add an inline
isServer
check and not initialized the controller. Not very ergonomic though!Is this a regression?
No or unsure. This never worked, or I haven't tried before.
Affected versions
All versions
Browser/OS/Node environment
All Node versions
The text was updated successfully, but these errors were encountered: