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
This patch adds a small change to the if statement to check the window variable is not undefined before referencing it, following a similar pattern I've seen used in other projects. The reason for the change is that when building a server-side-rendered project using Vite, I get a "ReferenceError: window is not defined" on this line. It builds just fine with the modification in this patch.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.This patch adds a small change to the if statement to check the window variable is not undefined before referencing it, following a similar pattern I've seen used in other projects. The reason for the change is that when building a server-side-rendered project using Vite, I get a "ReferenceError: window is not defined" on this line. It builds just fine with the modification in this patch.
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: