Skip to content

[Bug] Invalid CSS syntax in dist/style.css (nested var) breaks Next.js / Turbopack builds #12

@jkatumba

Description

@jkatumba

Describe the bug

The @workflowbuilder/sdk package contains invalid CSS syntax in its compiled stylesheet (dist/style.css). Specifically, it uses a nested var(var(...)) construct, which violates the CSS Custom Properties specification.

Modern, strict CSS compilers such as Lightning CSS (used natively by Next.js Turbopack) fail the entire build when encountering this parsing error.

Error Output

Parsing CSS source code failed
./node_modules/@workflowbuilder/sdk/dist/style.css:1:411198
> 1 | ...debar_oks5m_1{width:auto}:root{--wb-palette-item-outline-color-hover: var(var(--ax-node-stroke-primary-hover));--wb-palette-item-shad-color-hover: r...
    |                                                                              ^
Unexpected token Function("var")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions