postcss / postcss-simple-vars

PostCSS plugin for Sass-like variables
MIT License
415 stars 36 forks source link

JisonLexerError: Lexical error on line 1: Unrecognized text. #95

Closed frederikhors closed 3 years ago

frederikhors commented 3 years ago

From "postcss-simple-vars": "6.0.2" to "postcss-simple-vars": "6.0.3" (the only upgrade in my package.json) I get this error during build:

Unknown error from PostCSS plugin. Your current PostCSS version is 8.2.4, but cssnano uses 7.0.35. Perhaps this is the source of the error below.
[!] (plugin postcss) JisonLexerError: Lexical error on line 1: Unrecognized text.

  Erroneous area:
1: 100vh - $my-custom-var
^..........^
sampullman commented 3 years ago

There is a potential incompatibility with plugins using PostCSS < 8, you can try the workaround here: #94 , otherwise the best option is to pin 6.0.2 until cssnano is updated.