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

npm run build error #31

Closed
cybibo opened this issue May 4, 2017 · 3 comments
Closed

npm run build error #31

cybibo opened this issue May 4, 2017 · 3 comments

Comments

@cybibo
Copy link

cybibo commented May 4, 2017

$npm run build
....
ERROR in static/js/0.ed314fa45c35f2165374.js from UglifyJs
Unexpected token punc «(», expected punc «:» [static/js/0.ed314fa45c35f2165374.js:13189,6]
.....
Build complete.

Tip: built files are meant to be served over an HTTP server.
Opening index.html over file:// won't work.

@lin-xin
Copy link
Owner

lin-xin commented May 8, 2017

@cybibo 压缩失败,还能运行吗。该文件是不是 vue-core-image-upload 这个插件的压缩文件呢

@lin-xin
Copy link
Owner

lin-xin commented May 8, 2017

这应该是这个插件里用了es6的写法才会在压缩的时候失败。可以卸载掉安装回他旧版本插件,旧的应该没问题。

@lin-xin lin-xin closed this as completed May 12, 2017
@tingyuji
Copy link

这个问题我也遇到了,我把 vue-core-image-upload 去掉换成其他同功能组价就完事

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

3 participants