Error when running with --prod in chart component

This works fine when not using --prod, but with --prod, I get this...



Seems similar to the one mentioned in this thread about the Gridview:

These are the relevant entries in my package.json file...

{
"dependencies": {
"@angular/animations": "^8.2.14",
"@angular/common": "^8.2.14",
"@angular/compiler": "^8.2.14",
"@angular/core": "^8.2.14",
"@angular/forms": "^8.2.14",
"@angular/http": "^7.2.16",
"@angular/platform-browser": "^8.2.14",
"@angular/platform-browser-dynamic": "^8.2.14",
"@angular/platform-server": "^8.2.14",
"@angular/router": "^8.2.14",
"@syncfusion/ej2-angular-base": "^17.4.52",
"@syncfusion/ej2-angular-buttons": "^17.4.51",
"@syncfusion/ej2-angular-charts": "^17.4.51",
"@syncfusion/ej2-angular-dropdowns": "^17.4.51",
"@syncfusion/ej2-angular-grids": "^17.4.51",
"@syncfusion/ej2-angular-inputs": "^17.4.51",
"@syncfusion/ej2-angular-lists": "^17.4.51",
"@syncfusion/ej2-angular-notifications": "^17.4.51",
"@syncfusion/ej2-angular-popups": "^17.4.51",
"@syncfusion/ej2-base": "^17.4.51",
"@syncfusion/ej2-buttons": "^17.4.51",
"@syncfusion/ej2-charts": "^17.4.51",
"@syncfusion/ej2-data": "^17.4.51",
"@syncfusion/ej2-dropdowns": "^17.4.51",
"@syncfusion/ej2-grids": "^17.4.51",
"@syncfusion/ej2-inputs": "^17.4.51",
"@syncfusion/ej2-lists": "^17.4.51",
"@syncfusion/ej2-notifications": "^17.4.51",
"@syncfusion/ej2-popups": "^17.4.51",
"syncfusion-javascript": "^17.3.19",
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.800.6",
"@angular/cli": "^8.3.25",
"@angular/compiler-cli": "^8.2.14",
"@angular/language-service": "^8.2.14",
"@types/ej.web.all": "^17.4.0"
}
}

Any idea how to fix this?
Thanks,
Dan


1 Reply

SM Srihari Muthukaruppan Syncfusion Team March 9, 2020 09:42 AM UTC

Hi Dan, 
 
We have analyzed your query. From that, we would like to let you know that the chart production build is working fine in angular 8. We have also tried to reproduce the reported scenario in the mentioned version (17.4.51). Unfortunately we are unable to reproduce the reported scenario. We have also attached the sample used for testing. Please find the below sample and screenshot. 
 
  
Code Snippet: 
Package.json: 
 
{ 
// add your additional code here 
  "dependencies": { 
    "@angular/animations": "~8.2.14", 
    "@angular/common": "~8.2.14", 
    "@angular/compiler": "~8.2.14", 
    "@angular/core": "~8.2.14", 
    "@angular/forms": "~8.2.14", 
    "@angular/platform-browser": "~8.2.14", 
    "@angular/platform-browser-dynamic": "~8.2.14", 
    "@angular/router": "~8.2.14", 
    "@syncfusion/ej2-angular-charts": "*", 
    "@syncfusion/ej2-charts": "*", 
    "rxjs": "~6.4.0", 
    "tslib": "^1.10.0", 
    "zone.js": "~0.9.1" 
  }, 
  "devDependencies": { 
    "@angular-devkit/build-angular": "~0.803.22", 
    "@angular/cli": "~8.3.22", 
    "@angular/compiler-cli": "~8.2.14", 
    "@angular/language-service": "~8.2.14", 
    "@types/jasmine": "~3.3.8", 
    "@types/jasminewd2": "~2.0.3", 
    "@types/node": "~8.9.4", 
    "codelyzer": "^5.0.0", 
    "jasmine-core": "~3.4.0", 
    "jasmine-spec-reporter": "~4.2.1", 
    "karma": "~4.1.0", 
    "karma-chrome-launcher": "~2.2.0", 
    "karma-coverage-istanbul-reporter": "~2.0.1", 
    "karma-jasmine": "~2.0.1", 
    "karma-jasmine-html-reporter": "^1.4.0", 
    "protractor": "~5.4.0", 
   "ts-node": "~7.0.0", 
    "tslint": "~5.15.0", 
    "typescript": "~3.5.3", 
    "webpack-bundle-analyzer": "^3.6.0" 
  } 
} 
// add your additional code here 
 
Screenshot: 
 
 
If you still face this issue. kindly revert us with the following information which will be more helpful for further analysis and provide you the solution sooner. 
  • Try to reproduce the reported scenario in the above sample
  • Please share your sample (or) code snippet with full configurations.
  • Share the details if you have done any other customization in your sample.
Let us know if you have any concerns. 
 
Regards, 
Srihari 


Loader.
Up arrow icon