【问题标题】:Should postcss plugins reference postcss as a peer dependency?postcss 插件是否应该将 postcss 引用为对等依赖项?
【发布时间】:2018-12-17 04:22:35
【问题描述】:

我正在尝试使用PostCSS Sass Color Function。我收到此错误:

    Unknown error from PostCSS plugin. Your current PostCSS version is 6.0.22, but postcss-sass-color-functions uses 5.2.18. Perhaps this is the source of the error below.
    (node:12911) UnhandledPromiseRejectionWarning: Error: /home/ole/Junk/superflycss/component-button/node_modules/@superflycss/variables-colors/notifications/index.css:76:9: Unable to parse color from string "25%"

【问题讨论】:

    标签: javascript css npm sass postcss


    【解决方案1】:

    Postcss-sass-color-functions 不再按照其存储库中的说明进行维护。

    您可以使用postcss-preset-env 来代替启用color-mod-function 来做同样的事情。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-26
      • 2021-05-20
      • 2017-09-07
      • 2020-11-30
      • 2018-07-21
      • 2021-01-11
      • 2021-03-03
      • 2022-09-28
      相关资源
      最近更新 更多