Skip to content

Cannot parse SCSS variables #147

@Haberkamp

Description

@Haberkamp
  • Operating System (or Browser):
  • Node Version: 22.11.0
  • postcss-values-parser Version: 6.0.2

How Do We Reproduce?

Here's a little Stackblitz instance that reproduces the issue.

Expected Behavior

It should parse the value without any issues.
The value should be the variable like $red-400 and the type could either be variable or just ''.

Actual Behavior

It throws an exception saying unknownWord

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions