Error when building release version

I've upgrading my app to use EJ2 controls instead of EJ1. This works fine with debug builds locally, but when I try to do a production build, I get this error...



Any ideas what this means and how to resolve it?


3 Replies

SM Srihari Muthukaruppan Syncfusion Team March 2, 2020 12:19 PM UTC

Hi Dan, 

We have analyzed your query. From that, we suspect the reported scenario occurs due to the installation of older package version of charts. Hence we suggest you to upgrade the package to latest version to overcome the reported scenario. we have also prepared a sample and attached the package.json file for your reference. Please find below code snippet and sample.  
  
 
Code Snippet:   
 
// 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": { 
    // add your additional code here 
  } 


Screenshot: 
 

Kindly revert us if you need further assistance. 

Regards 
Srihari M 



DC Dan Clarke March 2, 2020 01:39 PM UTC

Aha! I can't believe I missed that! In my package.json, all my @syncfusion/ej2-* and @syncfusion/ej2-angular-* references were ^17.4.51 - EXCEPT for @syncfusion/ej2-charts, which for some reason was ^16.4.54! Not sure why! Changing that to also be ^17.4.51 has fixed the issue.

Thank you for your very quick reply.


SM Srihari Muthukaruppan Syncfusion Team March 3, 2020 05:12 AM UTC

Hi Dan, 

Most welcome. Kindly get in touch with us, if you requires further assistance. We are always happy in assisting you.   
   
Thanks,   
Srihari M 


Loader.
Up arrow icon