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

Cannot read properties of undefined (reading 'bodyWidgets')

Error opening document in text editor:

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

Uncaught TypeError: Cannot read properties of undefined (reading 'length')

Using syncfusion version "@syncfusion/ej2-react-documenteditor": "^20.3.47",
On react version
"react": "^17.0.2",

3 Replies

KM Kavitha Muralitharan Syncfusion Team March 31, 2023 05:30 AM UTC

Hi Carlos,

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 and also share the details of issue if you faced any in console. 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.


Kavitha M

CH Carlos Henrique Sousa March 31, 2023 12:48 PM UTC

Hi Kevitha,

I tested other documents and they all have the same error

it was working perfectly for the last 3 months but suddenly stopped.

Attachment: docs_a712a4fd.zip

KM Kavitha Muralitharan Syncfusion Team April 3, 2023 05:24 AM UTC

Carlos, we are unable to reproduce the reported issue in our latest version. We suspect that you are using older version. We recommend you upgrade both client and server side to the latest version
(v21.1.37) packages. Please upgrade and try to open the shared document on your end. Please
cross-check that in the below given Demo link and let us know if you need any further assistance.

NPM Link: (Client-side)



NuGet link: (Server-side)



Demo Link: https://ej2.syncfusion.com/react/demos/#/bootstrap5/document-editor/default

Live Chat Icon For mobile
Up arrow icon