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

SassError: Incompatible units ? #3290

@MH-YANG6

Description

@MH-YANG6

node-sass not support this code format 🥺?
@include defineColorHSL(--01-fill-07-neutral-neutral-50-75, 215, 100%, 80%);

--01-fill-neutral-neutral-50-75 (success)✔️
--01-07-neutral-neutral-50-75 (success)✔️

--01-fill-07-neutral-neutral-50-75 (fail)✖️
--01-07-neutral-neutral-50-75-fill (fail)✖️

>  ERROR in ./src/styles/main.scss (./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/postcss-loader/src??ref--5-2!./node_modules/sass-loader/dist/cjs.js??ref--5-3!./src/styles/main.scss)
> Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
> SassError: Incompatible units: '-neutral-neutral' and '-fill'.
>         on line 169 of src/styles/variables-theme/_lv-ls.scss
>         from line 13 of /Users/leo_yang/go/src/gitlab.paradise-soft.com.tw/design/stationary-website/ttmj/src/styles/main.scss
> >>   @include defineColorHSL(--01-fill-07-neutral-neutral-50-75, 215, 100%, 80%
>    --------------------------^ 

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