You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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() {
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() {
| /* 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
The text was updated successfully, but these errors were encountered: