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

Component fails to import on server side rendering #68

Open
kenxu0927 opened this issue May 27, 2022 · 2 comments
Open

Component fails to import on server side rendering #68

kenxu0927 opened this issue May 27, 2022 · 2 comments

Comments

@kenxu0927
Copy link

I'm working on a project using server side rendering React and this library throws an error on my server side:

ReferenceError: window is not defined

@stringariSM
Copy link

I have the same problem.

Server Error
ReferenceError: window is not defined

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
node_modules/bootstrap-switch-button-react/lib/bootstrap-switch-button-react.js (1:9869)

@stringariSM
Copy link

I found this issue which contains a short solution: #35

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