Skip to content

bug: [Next.js] Parsing CSS source code failed. .cally ::part(day):hover:not(selected, today) #4630

Closed

Description

@nemrosim

Reproduction URL (Required)

stackblitz is not supporting Next v16 with the turbopack

What version of daisyUI are you using?

5.6.18

Which browsers are you seeing the problem on?

Chrome, All browsers, Other

Describe your issue

Next.js v16, turbopack, browserslist > 1%

On app start Next js will fail because of the error

[browser] ./src/app/globals.css:7331:42
Parsing CSS source code failed
  7329 |       font-size: 0.7rem;
  7330 |     }
> 7331 |     .cally ::part(day):hover:not(selected, today) {
       |                                          ^
  7332 |       background: var(--color-base-200);
  7333 |     }
  7334 |     .cally ::part(button day today) {

Invalid state

Solved it with the patch package by updating

- {"&:not(selected, today)":{"background":"var(--color-base-200)"}}
+ {"background":"var(--color-base-200)"}

Global.css

@import "tailwindcss";
@plugin "daisyui";

postcss.config.mjs

const config = {
  plugins: {
    "@tailwindcss/postcss": {},
  },
};

export default config;

NOTE: Updating browserslist will not help

  "browserslist": [
    "> 1%"
  ]

Activity

  1. github-actions commented on Jul 18, 2026

    @github-actions

    Thank you @nemrosim for reporting issues. It helps daisyUI a lot 💚
    I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
    In the meantime providing more details and reproduction links would be helpful.

  2. added a commit that references this issue on Jul 25, 2026
    6d64755
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions