Skip to content

Different next-theme versions #202

Description

@rendler-denis

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])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions