当前位置: 代码迷 >> 综合 >> Vue启动报错Use // eslint-disable-next-line to ignore the next line.
  详细解决方案

Vue启动报错Use // eslint-disable-next-line to ignore the next line.

热度:79   发布时间:2023-12-24 15:58:30.0
  ?  http://eslint.org/docs/rules/quotes  Strings must use singlequotesrc\components\home\AppIndex.vue:9:15name: "Appindex"^?  http://eslint.org/docs/rules/indent  Expected indentation of 0 spaces but found 4src\components\home\AppIndex.vue:10:1}^? 4 problems (4 errors, 0 warnings)Errors:3  http://eslint.org/docs/rules/indent1  http://eslint.org/docs/rules/quotesYou may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.

删掉或者注释掉webpack.base.conf.js里面的一句话

 module: {
    rules: [//注释或者删掉这句话//...(config.dev.useEslint ? [createLintingRule()] : []),{
    test: /\.vue$/,loader: 'vue-loader',options: vueLoaderConfig},
  相关解决方案