Skip to content

[bug]: Sonner required NextJS and is not compatible with anything else #8952

@LuziferSenpai

Description

@LuziferSenpai

Describe the bug

When installing the sonner component it also installs next-themes, which makes it not usable in a vite + react workflow.

Affected component/components

Sonner

How to reproduce

  1. Make a Vite React Project
  2. Install Sonner
  3. Check package.json

Codesandbox/StackBlitz link

No response

Logs

System Info

Win11, Chrome

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions