解决方法:
vue cli4去掉eslint 检查器的报错
eslint在编写过程中及其严格,甚至单引号和双引号或者空格注释都会引起报错,导致项目无法正常运行
eslintrc.js

module.exports = {
  root: true,
  env: {
    node: true
  },
  extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"],//去掉@vue/prettier
  parserOptions: {
    parser: "babel-eslint"
  },
  rules: {
    "no-console": process.env.NODE_ENV === "production" ? "error" : "off",
    "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
  }
};

或者在安装项目的时候不安装ESLint:
Use ESLint to lint your code? NO

2、

相关文章:

  • 2021-11-21
  • 2021-11-15
  • 2021-11-15
  • 2021-11-10
  • 2021-10-19
  • 2021-11-21
  • 2022-02-24
猜你喜欢
  • 2021-11-10
  • 2021-04-09
  • 2022-12-23
  • 2021-05-28
  • 2021-10-16
  • 2021-09-20
  • 2022-12-23
相关资源
相似解决方案