老师这个报错是怎么回事 前面都正常安装的 到运行就报错
来源:6-1 Vue项目预热 - 环境配置
慕UI2082686
2018-06-15
$ npm run dev
> travel@1.0.0 dev F:\wamp\www\Travel\travel
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
95% emitting WARNING Compiled with 4 warnings16:31:23
✘ http://eslint.org/docs/rules/comma-dangle Missing trailing comma
src\App.vue:10:14
name: 'App'
^
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\App.vue:11:2
}
^
✘ 2 problems (2 errors, 0 warnings)
Errors:
1 http://eslint.org/docs/rules/semi
1 http://eslint.org/docs/rules/comma-dangle
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\main.js:1:22
import Vue from 'vue'
^
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\main.js:2:24
import App from './App'
^
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\main.js:3:30
import router from './router'
^
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\main.js:5:33
Vue.config.productionTip = false
^
✘ http://eslint.org/docs/rules/comma-dangle Missing trailing comma
src\main.js:11:22
render: h => h(App)
^
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\main.js:12:3
})
^
✘ 6 problems (6 errors, 0 warnings)
Errors:
5 http://eslint.org/docs/rules/semi
1 http://eslint.org/docs/rules/comma-dangle
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\router\index.js:1:22
import Vue from 'vue'
^
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\router\index.js:2:32
import Router from 'vue-router'
^
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\router\index.js:3:49
import HelloWorld from '@/components/HelloWorld'
^
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\router\index.js:5:16
Vue.use(Router)
^
✘ http://eslint.org/docs/rules/comma-dangle Missing trailing comma
src\router\index.js:12:28
component: HelloWorld
^
✘ http://eslint.org/docs/rules/comma-dangle Missing trailing comma
src\router\index.js:13:6
}
^
✘ http://eslint.org/docs/rules/comma-dangle Missing trailing comma
src\router\index.js:14:4
]
^
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\router\index.js:15:3
})
^
✘ 8 problems (8 errors, 0 warnings)
Errors:
5 http://eslint.org/docs/rules/semi
3 http://eslint.org/docs/rules/comma-dangle
✘ http://eslint.org/docs/rules/space-before-function-paren Unexpected space before function parentheses
src\components\HelloWorld.vue:89:7
data () {
^
✘ http://eslint.org/docs/rules/comma-dangle Missing trailing comma
src\components\HelloWorld.vue:91:40
msg: 'Welcome to Your Vue.js App'
^
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\components\HelloWorld.vue:92:6
}
^
✘ http://eslint.org/docs/rules/comma-dangle Missing trailing comma
src\components\HelloWorld.vue:93:4
}
^
✘ http://eslint.org/docs/rules/semi Missing semicolon
src\components\HelloWorld.vue:94:2
}
^
✘ 5 problems (5 errors, 0 warnings)
Errors:
2 http://eslint.org/docs/rules/semi
2 http://eslint.org/docs/rules/comma-dangle
1 http://eslint.org/docs/rules/space-before-function-paren
You 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.
2回答
-
Dell
2018-06-17
warning 告诉你的编码不符合eslint规范
012018-06-18 -
MrFourth
2018-06-17
很多提示缺少分号和逗号
00
相似问题