【问题标题】:VUE CLI3.0 Create demo Failed to compile withVUE CLI3.0 创建演示 编译失败
【发布时间】:2019-06-14 11:07:37
【问题描述】:

enter image description here enter image description here

INFO  Starting development server...

 95% emitting CopyPlugin ERROR  Failed to compile with 1 errors12:29:34


 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.75.129:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js


{ [Error: EACCES: permission denied, open '/home/dollarkiller/demo/testdemo/node_modules/.stats-serve.json']
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path:
   '/home/dollarkiller/demo/testdemo/node_modules/.stats-serve.json' }

我的运行环境: 节点 v10.15.2 npm 6.6.0 vue cli 3.3.0

vue 创建 verdemo Bable 路由器 Vuex 手写笔 eslint 报告错误

默认默认部署不报错

【问题讨论】:

标签: vue.js vue-cli-3


【解决方案1】:

【讨论】:

  • 欢迎来到 StackOverflow。此处不鼓励仅包含链接的答案。通过此处的链接提供可用的基本信息,以改进您的答案并帮助您自己解决问题。
猜你喜欢
  • 2018-05-29
  • 2021-11-20
  • 1970-01-01
  • 2023-03-30
  • 2022-12-16
  • 1970-01-01
  • 1970-01-01
  • 2018-09-16
  • 1970-01-01
相关资源
最近更新 更多