Vue-element-admin: bug unexpected token < prod

Created on 29 Jun 2018  ·  3Comments  ·  Source: PanJiaChen/vue-element-admin

Hello,
when i launch in production (by not modifying anything) with npm run build:prod --preview, i have the error unexpected token < at http://localhost:9526/.

capture d ecran 2018-06-29 a 10 35 00
I did the "npm install" command at first.
I don't see how we can fix that.
Thanks for your help.

bug

Most helpful comment

The reason for this bug is this caused assetsPublicPath

https://github.com/PanJiaChen/vue-element-admin/blob/572a2d9c34688e277ac0ed7c1d713060a7c8b1d4/config/index.js#L69

You can temporarily set assetsPublicPath:'/'to a to solve this problem.

I will solve this problem gracefully as soon as possible.

All 3 comments

我还以为只有我是这样

The reason for this bug is this caused assetsPublicPath

https://github.com/PanJiaChen/vue-element-admin/blob/572a2d9c34688e277ac0ed7c1d713060a7c8b1d4/config/index.js#L69

You can temporarily set assetsPublicPath:'/'to a to solve this problem.

I will solve this problem gracefully as soon as possible.

Was this page helpful?
0 / 5 - 0 ratings