Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用vue cli3 @3.3.0 生成的项目 运行报错 #9348

Closed
xakxak007 opened this issue Jan 21, 2019 · 1 comment
Closed

使用vue cli3 @3.3.0 生成的项目 运行报错 #9348

xakxak007 opened this issue Jan 21, 2019 · 1 comment

Comments

@xakxak007
Copy link

Version

2.5.22

Reproduction link

https://github.com/xakxak007/vueBug

Steps to reproduce

选择手动创建项目
勾选 babel、Router、Vuex、CSS Pre-processors、Linter / Formatter、使用配置文件。
使用history路由,
选择使用sass,
选择仅使用eslint。
其余全部默认,项目创建后运行及打包均报错

What is expected?

正确运行

What is actually happening?

运行及打包报错


$ vue-cli-service serve --mode development --dashboard
INFO Starting development server...

80% after chunk modules optimization ERROR Failed to compile with 1 errors16:21:50

error in ./src/router.js

Module parse failed: Unexpected token (19: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://localhost:8081/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

@LinusBorg
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants