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 printing a grid with footer after building in --prod

Thread ID:





143390 Mar 18,2019 04:40 PM UTC Mar 21,2019 04:53 AM UTC Angular - EJ 2 3
Tags: Grid
Gonzalo Farias
Asked On March 18, 2019 04:40 PM UTC

Good afternoon.

I'm having some issues with the grid, trying to print while building in prod environment (dev works fine). The error is the following:

TypeError: Cannot read property 'firstChild' of undefined

It seems it's related to a rendering issue: in development, the HTML element that is rendered for printing includes a footer element, but in production it's missing, for some reason. Then when it tries to retrieve the footer, the function getFooterContent() returns undefined.

I kept debugging, trying to get deeper into the problem, but I'm not sure if this is a genuine bug or a problem on my side.

Pavithra Subramaniyam [Syncfusion]
Replied On March 19, 2019 08:53 AM UTC

Hi Gonzalo, 
Greetings from Syncfusion. 
We have checked the reported issue at our end but we could not reproduce the issue in our latest version. We have prepared a simple sample based on your query which can be downloaded from the below link. 
Could you please share the below details that will be helpful for us to provide a better solution as early as possible. 
  1. Please ensure whether the node_modules/@syncfusion folder has no any duplicate packages (ex: “node_modules/@syncfusion/ej2-navigations/node_modules/@syncfusion/ej2-base”). If yes please refer the below link for updating the Syncfusion package without duplication.
  1. Share your Syncfusion package version.
  2. Share your Grid code.
  3. Please reproduce the issue in the above sample if possible.
Pavithra S. 

Gonzalo Farias
Replied On March 20, 2019 04:43 PM UTC

Thanks a lot, after updating and removing the duplicates it seems to work without issue.

Pavithra Subramaniyam [Syncfusion]
Replied On March 21, 2019 04:53 AM UTC

Hi Gonzalo,  

Thanks for your update. 

We are happy to hear that the provided information helped you. 

Please contact us if you need any further assistance. As always, we will be happy to assist you.  

Pavithra 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