دنبال کننده ها

۱۳۹۶ آذر ۹, پنجشنبه

angular - Error from UglifyJs - Unexpected token: name (Subject)

[ad_1]



I'm trying to deploy my first Angular application. However, it doesn't build - error I'm getting is:




ERROR in vendor.809dd4effe018f6b3d20.bundle.js from UglifyJs
Unexpected token: name (Subject) [vendor.809dd4effe018f6b3d20.bundle.js:22197,6]




I've tried googling it, but all I've found is that Uglify doesn't support ES6. Ok, but my typescript is configured to compile to ES5...



Could it be that a npm module is in ES6 and I need to use babel? That's the only thing that comes to my mind.



My app is using Angular 4, typescript's target is es5.




[ad_2]

لینک منبع