vue跑项目跑不起来,求解一下

C:\Users\zsj>d:

D:>cd work

D:\work>cd admins

D:\work\admins>npm run ip

vue-admin@0.1.12 ip D:\work\admins
cross-env NODE_ENV=development node build/dev-server.js

[HPM] Proxy created: /MODApis -> http://dev.markitondemand.com
webpack: wait until bundle finished:
webpack: wait until bundle finished: /index.html
webpack built de040423250ca96e6acb in 8676ms
Hash: de040423250ca96e6acb
Version: webpack 2.6.1
Time: 8676ms
Asset Size Chunks Chunk Names
assets/img/fontawesome-webfont.912ec66.svg 444 kB
assets/fonts/fontawesome-webfont.674f50d.eot 166 kB
assets/fonts/fontawesome-webfont.b06871f.ttf 166 kB
assets/fonts/fontawesome-webfont.af7ae50.woff2 77.2 kB
assets/fonts/fontawesome-webfont.fee66e7.woff 98 kB
app.js 3.72 MB 0 app
vendor.js 1.03 MB 1 vendor

ERROR in ./client/store/modules/menu/lazyLoading.js
Module build failed: SyntaxError: D:/work/admins/client/store/modules/menu/lazyL
oading.js: Unexpected token (3:46)

1 | // lazy loading Components
2 | // https://github.com/vuejs/vue-router/blob/dev/examples/lazy-loading/app.
js#L8

3 | export default (name, index = false) => () => import(views/${name}${index
? '/index' : ''}.vue
)
| ^
4 |

@ ./client/store/modules/menu/index.js 2:0-40
@ ./client/store/index.js
@ ./client/app.js
@ ./client/index.js
@ multi ./build/dev-client ./client/index.js

ERROR in ./client/components/layout/index.js
Module build failed: SyntaxError: D:/work/admins/client/components/layout/index.
js: Unexpected token, expected { (1:7)

1 | export Navbar from './Navbar'
| ^
2 |
3 | export Sidebar from './Sidebar'
4 |

@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./cli
ent/App.vue 13:0-73
@ ./client/App.vue
@ ./client/app.js
@ ./client/index.js
@ multi ./build/dev-client ./client/index.js

ERROR in ./~/vue-bulma-jump/src/index.js
Module build failed: SyntaxError: D:/work/admins/node_modules/vue-bulma-jump/src
/index.js: Unexpected token, expected { (1:7)

1 | export BackToTop from './BackToTop'
| ^
2 | export default from './Jump'
3 |

@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./cli
ent/views/Home.vue 147:0-43
@ ./client/views/Home.vue
@ ./client/router/index.js
@ ./client/app.js
@ ./client/index.js
@ multi ./build/dev-client ./client/index.js
Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names
index.html 1.48 MB 0
webpack: Failed to compile.

Listening at http://localhost:8080

1个回答

webpack说无法成功打包运行,因为代码有问题。看你这第一个错误,cmd里都报的很清楚了,语法错误

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!