Replies: 1 comment
-
This is probably similar to the Jekyll error. Some of the SCSS files started to use features like max() that are only supported by dart sass, but not by LibSass (sassc) to compile the CSS. Some options you might could try: 1. PrecompiledUse the already compiled CSS. You could also add it to your repo and not load it from the 2. Separate importsOnly import the styles that are needed. Instead of adding all of Primer CSS, you could only add the components that are needed. That should also cut down on file size. Something like: - @import '@primer/css/index.scss';
+ @import '@primer/css/support/index.scss';
+ @import '@primer/css/base/index.scss';
+ @import '@primer/css/buttons/index.scss';
+ etc. And make sure to avoid importing the 3. Keep using an older versionThe
Of course, you couldn't use any newer versions, but maybe still ok for a while. 4. Switch to dart sassIf feasible for your project, switching to dart sass should fix the compiler error. |
Beta Was this translation helpful? Give feedback.
-
It might happen that the build is failing with the following error:
Beta Was this translation helpful? Give feedback.
All reactions