简体   繁体   English

postcss插件是否应将postcss引用为对等依赖项?

[英]Should postcss plugins reference postcss as a peer dependency?

I'm attempting to use the PostCSS Sass Color Function . 我正在尝试使用PostCSS Sass Color Function I get this error: 我收到此错误:

    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%"

Postcss-sass-color-functions is no longer maintained as mentioned in their repository. Postcss-sass-color-functions不再按其存储库中所述进行维护。

You can use postcss-preset-env instead with color-mod-function enabled to do the same. 您可以使用启用了color-mod-function postcss-preset-env来执行相同的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM