Vue项目运行报错

文章描述:

Vue项目在创建后编辑运行报错

Compiled with problems:X

ERROR

[eslint]
E:\2022\7m\11\vue-tea\src\views\HomeView.vue
2:21 error Delete `⏎····⏎··` prettier/prettier
7:9 error Delete `⏎⏎` prettier/prettier

✖ 2 problems (2 errors, 0 warnings)
2 errors and 0 warnings potentially fixable with the `–fix` option.

 

解决方法

vue.config.js

lintOnSave: false

const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false
});

 

发布时间:2022/07/11

发表评论