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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error while running in --prod modus

Thread ID:





148369 Oct 16,2019 10:15 PM UTC Oct 17,2019 01:34 PM UTC Angular - EJ 2 1
Tags: Grid
Asked On October 16, 2019 10:15 PM UTC

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

Thavasianand Sankaranarayanan [Syncfusion]
Replied On 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. 

Thavasianand S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon