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

Error printing a grid with footer after building in --prod

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.

3 Replies

PS Pavithra Subramaniyam Syncfusion Team 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. 

GF Gonzalo Farias March 20, 2019 04:43 PM UTC

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

PS Pavithra Subramaniyam Syncfusion Team 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. 

Live Chat Icon For mobile
Up arrow icon