postcss / postcss-calc

PostCSS plugin to reduce calc()
MIT License
213 stars 34 forks source link

Issue when using postcss-modules-values #108

Closed joseprio closed 3 years ago

joseprio commented 4 years ago

Getting an error when using this module with postcss-modules-values.

Original CSS:

@value LINE_HEIGHT_RATIO from "./Theme.module.css";
...
.maxLine {
  max-height: calc(2 * var(--size) * LINE_HEIGHT_RATIO);
}

Error:

./src/components/Sample.module.css
JisonLexerError: Lexical error on line 1: Unrecognized text.

  Erroneous area:
1: 2 * var(--size) * i__const_LINE_HEIGHT_RATIO_10
alexander-akait commented 3 years ago

Something wrong with your bundle, we can't solve this on our side, maybe you have invalid order of plugins