8000 Different next-theme versions · Issue #202 · timlrx/pliny · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Different next-theme versions #202

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

Open
rendler-denis opened this issue Apr 12, 2025 · 1 comment
Open

Different next-theme versions #202

rendler-denis opened this issue Apr 12, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@rendler-denis
Copy link

Describe the bug
When using the Giscus plugin I noticed that the useThemes was returning "undefined" for the Giscus plugin.
Debugging I noticed that the plugin uses a different version of the next-theme package.

To Reproduce
Steps to reproduce the behavior:

  1. Install the latest version of tailwind-nextjs-starter-blog
  2. activate the Giscus plugin for comments
  3. Switch to dark theme
  4. Loaded Giscus is still using the light theme

Expected behavior
The Giscus plugin should use the darkTheme config

Screenshots

Image

System Info (if dev / build issue):

  • OS: any
  • Node version (please ensure you are using 14+): 22.3.0
  • Npm version: 10.8.1

Browser Info (if display / formatting issue):

  • Device [e.g. Desktop, iPhone6]: any
  • Browser [e.g. chrome, safari]: any
  • Version [e.g. 22]: any

Additional context
I am not a JS dev, but I suspect the difference in the dependencies is what triggers this.

$ yarn why next-themes                                                                                                       
├─ website@workspace:.
│  └─ next-themes@npm:0.4.6 [13504] (via npm:^0.4.6 [13504])
│
├─ pliny@npm:0.4.1
│  └─ next-themes@npm:0.3.0 (via npm:^0.3.0)
│
└─ pliny@npm:0.4.1 [13504]
   └─ next-themes@npm:0.3.0 [ef868] (via npm:^0.3.0 [ef868])
@rendler-denis rendler-denis added the bug Something isn't working label Apr 12, 2025
@rendler-denis
Copy link
Author

for those coming to this issue, a quick fix would be to add the following to the project's package.json:

"resolutions": {
    "next-themes": "0.4.6"
  }

@rendler-denis rendler-denis changed the title Different netx/theme versions Different next-theme versions Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0