ElemeFE / mint-ui

Mobile UI elements for Vue.js
http://mint-ui.github.io/#!/en
MIT License
16.56k stars 3.55k forks source link

[Bug Report] npm run build报错 #1055

Open song7788q opened 7 years ago

song7788q commented 7 years ago

Mint UI version

2.2.9

OS/Browsers version

macOS 10.12.6

Vue version

2.2.6

Reproduction Link

https://github.com/ElemeFE/mint-ui

Steps to reproduce

npm run build 打包报错,webpack 版本2.2.1

What is Expected?

ERROR in static/js/1.8721d9faf70997d6a56a.js from UglifyJs Unexpected token name «i», expected punc «;» [./~/.2.2.9@mint-ui/src/utils/merge.js:2,0][static/js/1.8721d9faf70997d6a56a.js:2397,11]

What is actually happening?

ERROR in static/js/1.8721d9faf70997d6a56a.js from UglifyJs Unexpected token name «i», expected punc «;» [./~/.2.2.9@mint-ui/src/utils/merge.js:2,0][static/js/1.8721d9faf70997d6a56a.js:2397,11]

smz8023 commented 6 years ago

你好 你解决了么 我也遇到这个问题

song7788q commented 6 years ago

@smz8023 mint全局use之后,组建就不需要在import了,这个错误就是因为重复引入了。