Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
警告:[对象]不是POSTSS插件。GruntJS带自动刷新器_Gruntjs_Postcss_Autoprefixer - Fatal编程技术网

警告:[对象]不是POSTSS插件。GruntJS带自动刷新器

警告:[对象]不是POSTSS插件。GruntJS带自动刷新器,gruntjs,postcss,autoprefixer,Gruntjs,Postcss,Autoprefixer,我正在尝试将PostSS插件autoprefixer与grunt一起使用。我已经阅读了很多相关的文章和Stackoverflow的答案,但我仍然得到了“警告:[object]不是PostCSS插件使用——强制继续” 目前还不确定根本原因是什么,但将autoprefixer降级到版本9可以解决问题 package.json "devDependencies": { "grunt": "^1.4.0", "gr

我正在尝试将PostSS插件autoprefixer与grunt一起使用。我已经阅读了很多相关的文章和Stackoverflow的答案,但我仍然得到了“警告:[object]不是PostCSS插件使用——强制继续”


目前还不确定根本原因是什么,但将autoprefixer降级到版本9可以解决问题

package.json
  "devDependencies": {
    "grunt": "^1.4.0",
    "grunt-contrib-sass": "^2.0.0",
    "grunt-contrib-watch": "^1.1.0",
    "grunt-postcss": "^0.9.0",
    "postcss": "^8.3.0",
    "autoprefixer": "^9.8.6"
  }
package.json
  "devDependencies": {
    "grunt": "^1.4.0",
    "grunt-contrib-sass": "^2.0.0",
    "grunt-contrib-watch": "^1.1.0",
    "grunt-postcss": "^0.9.0",
    "postcss": "^8.3.0",
    "autoprefixer": "^9.8.6"
  }