vuecli3 运行报错

Posted muou2125

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vuecli3 运行报错相关的知识,希望对你有一定的参考价值。

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:UsersAdministratorDesktopcube>npm run serve

> [email protected] serve C:UsersAdministratorDesktopcube
> 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











以上是关于vuecli3 运行报错的主要内容,如果未能解决你的问题,请参考以下文章

vue 安装scss 运行vue项目报错

vue-cli3 打包优化

vuecli3打包项目上线之后报错怎么使用本地的sourcemap文件定位调试?

vue项目eslint报错与解决方法整理

vuecli创建项目用不了vue2

Tomcat问题。运行报错