我收到此错误如何解决?
我尝试通过安装它然后我也遇到了问题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/