vue脚手架创建,直接修改app.vue报错

error  in ./src/App.vue

Module Error (from ./node_modules/eslint-loader/index.js):

E:\html\html\html\vue\vuex_demo1\src\App.vue
  10:7  error  Missing space before function parentheses  space-before-function-paren
  10:9  error  Missing space before opening brace         space-before-blocks
  12:1  error  Trailing spaces not allowed                no-trailing-spaces

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

解决办法 安装vue_loader

创建webpack.config.js 写入以下

const VueLoaderPlugin = require('vue-loader/lib/plugin');
module.exports = {
    plugins: [ //配置插件的节点,所有插件都要在这里配置
        new VueLoaderPlugin()
    ],
    module: {
        rules: [
            { test: /\.vue$/, loader: 'vue-loader' }
        ]
    }
};

后续还是有问题 创建vue.config.js 写入

module.exports = {
    lintOnSave: false
}