Search code examples
angularecmascript-5uglifyjsfusioncharts

Error in Angular 4 Prod build with unexpected tokens


I get an error when angular prod build, and I have Modified tsconfig.json to "target": "es5", but still gets the same error as below. This came after the local installation of fusionchart packages. Please help

enter image description here


Solution

  • This is due to the ECMAScript mismatch of the FusionChart package and the Current Project. My project is using es6 and Fusion chart required es5. You cannot have packages with different ECMAScript Versions !