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

SassError: Incompatible units ? #3290

Open
MH-YANG6 opened this issue Aug 25, 2022 · 0 comments
Open

SassError: Incompatible units ? #3290

MH-YANG6 opened this issue Aug 25, 2022 · 0 comments

Comments

@MH-YANG6
Copy link

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%
>    --------------------------^ 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant