-
Notifications
You must be signed in to change notification settings - Fork 18
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
TypeError: window.__setPreferredTheme is not a function #2
Comments
File: toggleTheme |
Did you forget to include the plugin in your |
I got the same error. Restarting my local dev server fixed it for me. |
Sadly I have the same issue:
Still the same, crashes when clicking the checkbox. |
I had the same error, but it was fixed by adding "--save" to the npm command.
|
yeah, this works fine. |
Steps to reproduce:
gatsby new gatsby-blog
npm install gatsby-plugin-dark-mode
The text was updated successfully, but these errors were encountered: