在进行调试的时候,我们的浏览器会出现这样的错误:Failed to load resource:the server responded with a status of 404(Not Found)
终端的提示错误则为:ERROR in ./src/router.js
✘ http://eslint.org/docs/rules/semi Extra semicolon
F:\WebstormProjects\vue-wys\src\router.js:5:19
Vue.use(VueRouter);
^
✘ 1 problem (1 error, 0 warnings)
Errors:
1 http://eslint.org/docs/rules/semi
ERROR in ./src/store/index.js
✘ http://eslint.org/docs/rules/semi Extra semicolon
F:\WebstormProjects\vue-wys\src\store\index.js:6:14
Vue.use(Vuex);
^
✘ 1 problem (1 error, 0 warnings)
Errors:
1 http://eslint.org/docs/rules/semi
Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names
index.html 21 kB 0
webpack building...
webpack built 41d5644430aaf339082b in 136ms
解决方法:需要了解js编程风格。即JS standard Style。学习地址https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
在终端出现错误的网址,可以直接将该网址复制到浏览器直接打开,最快的方式查找错误。
这个项目的错误是基于Webpack的Vue2SPA开发环境,支持ES6、less、ESlint、e2e test,种子项目已集成vuex、vue-router、vue-resources、mockjs。