Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

[Bug] Variables in calc() cannot be compiled #135

@uncaught

Description

@uncaught

Steps To Reproduce

  1. Use a variable inside a calc() function

The current behavior

A compile error Error: Expected "(" or ".". is thrown:

image

The expected behavior

No compile error.


I have created a minimal test repository with two calc cases:

git clone [email protected]:uncaught/styled-jsx-sass-var-in-calc-issue.git
cd styled-jsx-sass-var-in-calc-issue/
npm install
npm start

These usages of variables in calc() work with node-sass and styled-jsx-plugin-sass.

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