vuecli3 运行报错
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator\Desktop\cube>npm run serve
> cube@0.1.0 serve C:\Users\Administrator\Desktop\cube
> vue-cli-service serve
INFO Starting development server...
98% after emitting CopyPlugin
ERROR Failed to compile with 1 errors 19:57:03
error in ./src/router.js
Module parse failed: Unexpected token (17:13)
You may need an appropriate loader to handle this file type.
| // which is lazy-loaded when the route is visited.
| component: function component() {
> return import(
| /* webpackChunkName: "about" */
| './views/About.vue');
@ ./src/main.js 6:0-30 10:10-16
@ multi (webpack)-dev-server/client?http://192.168.30.220:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
解决方法可看github:https://github.com/vuejs/vue-cli/issues/3335