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

SSR Not Supported #6

Closed
orinaveh opened this issue Mar 17, 2023 · 2 comments · Fixed by #7
Closed

SSR Not Supported #6

orinaveh opened this issue Mar 17, 2023 · 2 comments · Fixed by #7
Assignees
Labels
enhancement New feature or request

Comments

@orinaveh
Copy link
Contributor

Hi!

We tried to use the toggle in our Next.JS project, but We got an "Document not defined" error. This has happened duo to the emotion package, which using Document.

I have forked the package and added a fix to the issue, By removing emotion, and using css only.

I hope that PR will help that package to grow and be more useful for those preferring SSR!

@guykleiman
Copy link

as someone who had the same problem its so good to see someone tries to fix it, its such a cool package that I think its a must for everything with dark mod

@todd-elvers
Copy link
Owner

Ah, yes SSR support is lacking, thanks for finding and addressing this. I'm looking at the PR now.

@todd-elvers todd-elvers self-assigned this Jan 8, 2024
@todd-elvers todd-elvers added the enhancement New feature or request label Jan 8, 2024
@todd-elvers todd-elvers linked a pull request Jan 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants