TypeError: Cannot read properties of undefined (reading 'children')

Here, I am getting following error when i try to open document editor.


Uncaught TypeError: Cannot read properties of undefined (reading 'children') at Layout.shiftChildLocation (layout.js:430:1) at Layout.shiftFooterChildLocation (layout.js:3902:1) at Layout.updateWidgetsToPage (layout.js:6995:1) at Layout.layoutTable (layout.js:6875:1) at Layout.layoutBlock (layout.js:480:1) at Layout.layoutHeaderFooterItems (layout.js:408:1) at Layout.layoutHeaderFooter (layout.js:263:1) at PageLayoutViewer.createNewPage (viewer.js:4050:1) at Layout.layoutItems (layout.js:159:1) at DocumentHelper.onDocumentChanged (viewer.js:2216:1) at DocumentEditor.open (document-editor.js:1609:1) at editor.tsx:280:1 at commitHookEffectListMount (react-dom.development.js:19731:1) at commitPassiveHookEffects (react-dom.development.js:19769:1) at HTMLUnknownElement.callCallback (react-dom.development.js:188:1) at Object.invokeGuardedCallbackDev (react-dom.development.js:237:1) at invokeGuardedCallback (react-dom.development.js:292:1) at flushPassiveEffectsImpl (react-dom.development.js:22853:1) at unstable_runWithPriority (scheduler.development.js:653:1) at runWithPriority$1 (react-dom.development.js:11039:1) at flushPassiveEffects (react-dom.development.js:22820:1) at flushDiscreteUpdates (react-dom.development.js:21830:1) at flushDiscreteUpdatesIfNeeded (react-dom.development.js:829:1) at dispatchDiscreteEvent (react-dom.development.js:4167:1) at editor.selectionChange (editor.tsx:89:1) at Observer.notify (observer.js:101:1) at Base.trigger (base.js:190:1) at document-editor-container.js:747:1

This was when I tried to add a table in the footer of a docx template.


3 Replies

SM Suriya Murugan Syncfusion Team September 29, 2022 10:44 AM UTC

Hi Milan,


We suspect that the reported problems are might be due to the contents in the input word document which used at your end. We need to investigate with the contents in your input Word document to reproduce the exact problem at our end. So, could you please provide us the input Word document which used at your end. Thereby, we will analyze further and provide you the appropriate solution at the earliest.

 

Note: If you have any confidential data in your Word document, please replace with some dummy data and provide us the same. We just need your document to recreate the problem you face.


Regards,

Suriya M.



MP Milan Panta September 29, 2022 11:00 AM UTC

Ok, I have replaced every word in that document with dummy texts please find the link of the file below:

https://easyupload.io/uxss5j

The problem occured after I tried to create a table in the footer and add initials and a page number. The version that i used is `"@syncfusion/ej2-react-documenteditor": "20.1.48".`




SM Suriya Murugan Syncfusion Team October 6, 2022 12:23 PM UTC

Hi Milan,


Can you please zip and attach the file here? we are not able to get the file. Also, you were using lower version of Document editor, please upgrade your Document editor packages to latest version(20.3.48) and let us know if you still facing issues.


Regards,

Suriya M.


Loader.
Up arrow icon