Skip to content

Not Installing with daisyui 5.0? #470

@eltonSalanic

Description

@eltonSalanic

Whenever installing react-daisyui, i get

Could not resolve dependency:
npm ERR! peer daisyui@"^4.12.10" from react-daisyui@5.0.5
npm ERR! node_modules/react-daisyui
npm ERR! react-daisyui@"^5.0.5" from the root project

Downgrading DaisyUI to 4.12.10 causes this error to show up when running react app:
(client) Pre-transform error: addUtilities({ '@media (min-width: 640px)' : … }) defines an invalid utility selector. Utilities must be a single class name and start with a lowercase letter, eg. .scrollbar-none.
Plugin: @tailwindcss/vite:generate:serve

If anyone has any fixes, let me know thank you :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions