Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The JS library uses window object which is not available in an SSR context like Remix #144

Open
LeftoversTodayAppAdmin opened this issue Sep 4, 2024 · 1 comment

Comments

@LeftoversTodayAppAdmin
Copy link

Hey folks!
I am building an app using Remix which does server side rendering by default and it looks like this library relies on the window object which is only available in client side browser contexts and it fails with the following error when the same page tries to render on the server.

ReferenceError: window is not defined

Is it possible to update the library to remove its reliance on the window object so it can be used for Server Side Rendering which is very common for ecommerce applications where your library will likely get the most use?

Thank you!
Shri

@majin22
Copy link
Member

majin22 commented Sep 4, 2024

not sure if I can look at this in the near future because i have a lot of other more urgent tasks in the near future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants