Prod build exception

We have a few controls being used - but in run time datepicker blows up with an exception:

ERROR TypeError: l.registerEvents is not a function
which points to: _this.registerEvents(outputs); in the DatePickerComponent constructor.

This only happens for a --prod build. Works just fine otherwise.

The versions we're using:
ej2-angular-calendars": "^16.2.52"
angular cli: 6.0.5


fyi these are all the other loaded modules:
[ButtonModule, DropDownListModule, DialogModule, AccordionModule, TooltipModule, DatePickerModule];




5 Replies

DL Deepa Loganathan Syncfusion Team October 4, 2018 07:08 AM UTC

Hi Jatinder,  
 
 
Sorry for the inconvenience.  
 
 
We were able to reproduce the reported issue and have confirmed this as a defect and logged an issue report for this. The fix for this issue will be included in our upcoming patch release. We appreciate your patience until then.  
  
 
In meantime, we would like to suggest the below workaround solution to resolve this issue in application level by setting ‘optimization’ property as false in angular.json file.  
 
  
[angular.json]   
   
          "configurations": {   
            "production": {   
              "fileReplacements": [   
                {   
                  "replace""src/environments/environment.ts",   
                  "with""src/environments/environment.prod.ts"   
                }   
              ],   
              "optimization"false,   
              "outputHashing""all",   
              "sourceMap"false,   
              "extractCss"false,   
              "namedChunks"false,   
              "aot"true,   
              "extractLicenses"true,   
              "vendorChunk"false,   
              "buildOptimizer"true   
            }   
          }   
   
 
 
Please let us know if you have any further queries.  
 
  
Regards,  
 
Deepa L. 



JA Jatinder October 4, 2018 12:56 PM UTC

Thanks, that unblocks us for now.
But with no optimization the bundle sizes are insane.

Any idea when the patch is expected to be released?  and what number will that be?
Also i hope either the patch notes indicate this fix or if you could message back on this thread; so we can track it.


DL Deepa Loganathan Syncfusion Team October 5, 2018 06:00 AM UTC

Hi Jatinder,     
 
  
We would like to let you know that our upcoming patch release is tentatively scheduled on 2nd week of October 2018 and we will update you once patch release is done.   
 
 
We appreciate your patience until then.    
 
  
Regards,    
Deepa L. 



SA Sahal January 5, 2019 10:08 AM UTC

Is this issue resolved?



DL Deepa Loganathan Syncfusion Team January 7, 2019 07:00 AM UTC

Hi Jatinder, 
 
Sorry for the inconvenience. We have fixed the reported issue in production mode. Kindly update your packages to the latest version by following the steps provided in our below help link. 
 
 
Regards,  
Deepa L. 


Loader.
Up arrow icon