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
SSR support was supported in #57), but as mentioned here, the web version gets loaded instead of the Node.js version, and it tries to access the window object, throwing a ReferenceError: window is not defined from here, here or here.
This lib really isn't designed for the use case in mind. Next-js router API is running server side and as such is basically a node-js environment and so should use the built posthog-node target instead as that way it includes concepts such as graceful shutdown and the correct fetch implementation for your node environment.
Bug description
SSR support was supported in #57), but as mentioned here, the web version gets loaded instead of the Node.js version, and it tries to access the
window
object, throwing aReferenceError: window is not defined
from here, here or here.How to reproduce
ReferenceError: window is not defined
Related sub-libraries
Additional context
Related: #67 (comment)
The text was updated successfully, but these errors were encountered: