javascript - autoprefixer : Replace color-adjust to print-color-adjust. 颜色调整速记目前已弃用

标签 javascript html css reactjs

我收到此错误如何解决?
我尝试通过安装它然后我也遇到了问题npm install autoprefixer@10.4.5 --save-exact

WARNING in ./node_modules/bootstrap/dist/css/bootstrap.min.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/bootstrap/dist/css/bootstrap.min.css) Module Warning (from ./node_modules/postcss-loader/dist/cjs.js): Warning

autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.

webpack compiled with 1 warning

最佳答案

package.json 中添加以下行:
如果您使用 yarn :

"resolutions": {
    "autoprefixer": "10.4.5"
}
如果您使用 npm :
"overrides": {
    "autoprefixer": "10.4.5"
}

关于javascript - autoprefixer : Replace color-adjust to print-color-adjust. 颜色调整速记目前已弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72511039/

相关文章:

html - 是完全不渲染 HTML 更好,还是添加显示 :none? 更好

javascript - javascript ajax 调用后调用 jquery

javascript - 如何获得JSON对象中两个数字之间的最大差异

html - 在 Safari 中选择元素时不考虑 CSS 中设置的字体

javascript - 使用 jQuery 折叠过滤器

html - 图片未在移动设备上拉伸(stretch)导致水平滚动

javascript - AngularJS 有条件绑定(bind)一次?

javascript - 带有 2 个参数的 href 到 ajax 和 php

html - 你如何通过 FTP 将 jekyll 站点托管到 hostgator

html - 在获得正确的 CSS 布局方面需要帮助