ERROR in index.web.js from UglifyJs
Closed this issue · 7 comments
longer271000 commented
通过weexpack 创建项目后,在执行npm run serve 时报以下错误
ERROR in index.web.js from UglifyJs
Unexpected token: name (urlParts) [index.web.js:3700,4]
已经创建 .babelrc文件 加入{ "presets": ["es2015"] }也不可用
fwk1010 commented
一样,好像几个月前还可以的
setli commented
我也遇到这个问题
weexpack create 项目名
cnpm install
weexpack run web
也出现
ERROR in index.web.js from UglifyJs
Unexpected token: name (urlParts) [index.web.js:3309,4]
ERROR in index.web.js from UglifyJs
Unexpected token: name (urlParts) [index.web.js:3311,4]
webpack: Failed to compile.
未找到解决办法
-------------------------
把weexpack的版本从0.45降到0.43也不行
erha19 commented
- Update your weex-toolkit
npm i weex-toolkit@latest -g
- Update weexpack
weex update weexpack@latest
Jam1zhu commented
每次升级,会改进一些问题,缺又出现一些新问题。。。
yvan0423 commented
在webpack配置项里把UglifyJsPlugin注释就行了
// new webpack.optimize.UglifyJsPlugin({minimize: true}),
erha19 commented
SaiyanGuo commented
现在是2017年12月16日,这个问题还没解决?
亲测,淘宝镜像问题。。。换成npm就好了