We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Error while running in --prod modus

After succesfull build ng serve --prod I can start my app, but when I go to a page with a grid the following error in the console:

main.f942d100b8245e6529b4.js:28799 ERROR TypeError: Class constructor Component cannot be invoked without 'new'
    at new Pager (main.f942d100b8245e6529b4.js:320713)
    at Page.push../node_modules/@syncfusion/ej2-grids/src/grid/actions/page.js.Page.render (main.f942d100b8245e6529b4.js:296841)
    at Observer.notify (main.f942d100b8245e6529b4.js:217125)
    at ComponentBase.notify (main.f942d100b8245e6529b4.js:221189)
    at ComponentBase.render (main.f942d100b8245e6529b4.js:266481)
    at ComponentBase.appendTo (main.f942d100b8245e6529b4.js:221132)
    at main.f942d100b8245e6529b4.js:110931
    at ZoneDelegate.invokeTask (polyfills.b650a8384318e9e90493.js:400)
    at Object.onInvokeTask (main.f942d100b8245e6529b4.js:58651)
    at ZoneDelegate.invokeTask (polyfills.b650a8384318e9e90493.js:399)

What do I wrong

1 Reply

TS Thavasianand Sankaranarayanan Syncfusion Team October 17, 2019 01:34 PM UTC

Hi Arnaud, 

Thanks for contacting Syncfusion support. 

We have validated the provided details and we have already fixed the reported problem. Its related to angular team and they have fixed a reported issue and published in angular-cli version 8.3.1.  

We suggest you to use the latest version of angular-cli and grid packages to resolve the problem. 

"dependencies": { 
    . . . . 
    "@syncfusion/ej2-angular-grids": "17.3.14", 
    "rxjs": "~6.4.0", 
    "tslib": "^1.10.0", 
    "zone.js": "~0.9.1" 
  }, 
  "devDependencies": { 
    "@angular-devkit/build-angular": "~0.803.2", 
    "@angular/cli": "~8.3.2", 
    "@angular/compiler-cli": "~8.2.4", 
    "@angular/language-service": "~8.2.4", 
     . . . . . 
    "typescript": "~3.5.3" 
  } 


Please get back to us if you still facing the problem and share the package.json file to validate further at our end. 

Regards, 
Thavasianand S. 


Loader.
Live Chat Icon For mobile
Up arrow icon