这个是什么报错

来源:15-3 组件拆分(下)

慕斯卡1073330

2017-07-03

 ERROR  Failed to compile with 1 errors                                                                         17:44:28

 error  in ./src/components/header/header.vue


  ✘  http://eslint.org/docs/rules/eol-last  Newline required at end of file but not found
  D:\H5\TEST\sell\src\components\header\header.vue:11:32
  /* HTML */
                                  ^


✘ 1 problem (1 error, 0 warnings)


Errors:
  1  http://eslint.org/docs/rules/eol-last

 @ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/App.vue 25:0-52
 @ ./src/App.vue
 @ ./src/main.js
 @ multi ./build/dev-client ./src/main.js


写回答

2回答

ustbhuangyi

2017-07-03

路径不对,以及 eslint 有报错,这块视频里都有讲,建议仔细看喔

0
2
慕斯卡1073330
// http://eslint.org/docs/user-guide/configuring module.exports = { root: true, parser: 'babel-eslint', parserOptions: { sourceType: 'module' }, env: { browser: true, }, // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style extends: 'standard', // required to lint *.vue files plugins: [ 'html' ], // add your custom rules here 'rules': { // allow paren-less arrow functions 'arrow-parens': 0, // allow async-await 'generator-star-spacing': 0, // allow debugger during development 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, 'semi':['error','always'], 'indent':0 } }
2017-07-04
共2条回复

前端sulu

2017-07-03

相对路径不对。


0
0

Vue.js2.5+cube-ui重构饿了么App(经典再升级)

掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp

9868 学习 · 4162 问题

查看课程