将Autoprefixer浏览器选项替换为Browserslist配置错误

时间:2019-08-05 17:05:33

标签: node.js reactjs autoprefixer

获取“将Autoprefixer浏览器选项替换为Browserslist配置”。运行 "hooks": { "pre-commit": "npm test && lint-staged" } }, "lint-staged": { "*.js": [ "prettier --write", "eslint --fix --max-warnings=0", "git add" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all", "ie 11" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version", "ie 11" ] } } 时出错。应用程序仍然可以启动并正常运行,只是希望摆脱这种烦人的错误消息。以下是我的package.json文件的底部-请让我知道是否还有更多文件/细节应包括在内。谢谢!

        const postCssLoader = {
      loader: 'postcss-loader',
      options: {
        ident: 'postcss',
      }
    };

razzle.config.js:

Error: No PostCSS Config found in: /Users/Gabe/esports-calendar/src/client/components/Logo

错误:

SELECT a.* 
  FROM advertisements a
  LEFT
  JOIN activitylogs l
    ON l.web_address = a.web_address
   AND DATE(FROM_UNIXTIME(l.timeperiod)) = CURDATE()
 WHERE l.id IS NULL;

1 个答案:

答案 0 :(得分:0)

另一个提示:看看您的node_modules。如果您的导入使用旧格式,也会出现该消息:

cd node_modules
find . -type f | xargs grep -I autoprefixer

应该适用于Unices。然后,向上游写以提交修订。另请参见https://github.com/browserslist/browserslist/issues/386