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
The reason might be that in the SSR environment, a virtual implementation of the Document element is needed. However, the example provided (which I referenced from this Observable example) is somewhat outdated.
I added the following line of code in the constructor of Document, to work around this issue:
classDocument{constructor(){this.documentElement=newElement(this,'html');this.defaultView={ Event };// workaround}// other things}