gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 07:06:00 27 4
gpt4 key购买 nike

我正在尝试使用 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%"

最佳答案

Postcss-sass-color-functions不再按照其存储库中所述进行维护。

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

关于javascript - postcss 插件是否应该将 postcss 引用为对等依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51619894/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com