MetinSeylan / Vue-Socket.io

😻 Socket.io implementation for Vuejs and Vuex
https://metin.sh
MIT License
3.95k stars 496 forks source link

ERROR in build.js from UglifyJs #177

Closed neonturk closed 5 years ago

neonturk commented 5 years ago

Hi, First of all thank you for this nice package.

I'm getting this error when I'm building my project.

ERROR in build.js from UglifyJs Unexpected token: punc (() [./node_modules/vue-socket.io/dist/vue-socketio.js:8,32088][build.js:20487,32100] npm ERR! code ELIFECYCLE npm ERR! errno 2

Thank you from now..

MetinSeylan commented 5 years ago

selam @neonturk, webpack ayarların tam olarak nedir bilmiyorum ama konu ile alakalı şurada bir açıklama mevcut https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/205

neonturk commented 5 years ago

Farklı paketlerde kullanıyorum fakat Vue-Socket.io paketini sisteme dahil ettikten sonra böyle bir hata ile karşılaşıyorum. webpack ile bir sorun olsa diğer zamanda da hata vermezmiydi acaba?

MetinSeylan commented 5 years ago

paketten pakete değişebilir şunu inceleyebilirmisin https://github.com/leocornus/leocornus-vue-sandbox/commit/2d77e3b7563c7ec3b18a7720f9c5b143c44659d2

neonturk commented 5 years ago

Bende tam https://github.com/webpack/webpack/issues/5858#issuecomment-338430720 bunu paylaşacaktım. Aynı yöntem ile çözülüyor. Sanırım uglifyjs-webpack-plugin den kaynaklı sorunmuş. Fixlenmiş sürümü de beta olduğu için webpack henüz dahil etmemiş.