Hi there,
Can anyone help me out on this, I am getting below error from yesterday, and I got to know that Service pack 1 (Essential studio volume 1 - 25.2.3) was released yesterday, I am unable to figure it out whether it is because of the new release.
FYI: I am running syncfusion: ej2-angular-documenteditor on older version
ERROR TypeError: Cannot read properties of undefined (reading 'bodyWidget')
ERROR TypeError: Cannot read properties of undefined (reading '0')
ERROR TypeError: Cannot set properties of undefined (setting 'name')
ERROR TypeError: Cannot read properties of undefined (reading 'containerWidget')
ERROR TypeError: Cannot read properties of undefined (reading 'length')
Hi Sanket,
The document editor requires server-side communication to open documents, and a service URL must be configured for these interactions.
Which service URL are you employing – a local hosting one or the demo service URL?
Demo service URL
https://services.syncfusion.com/angular/production/api/documenteditor/ |
If you're utilizing the demo service URL, the backend is likely on the latest version, which could cause compatibility issues if your Angular version is outdated. To avoid problems, it's essential to synchronize the versions of both the client-side and server-side components.
Front end:
NPM: @syncfusion/ej2-angular-documenteditor - npm (npmjs.com)
Backend:
Nuget:
https://www.nuget.org/packages/Syncfusion.Ej2.Wordeditor.ASPNet.Core/
https://www.nuget.org/packages/Syncfusion.Ej2.Wordeditor.ASPNet.MVC5/
We are using above service URL for demo purpose only. Please run the below web service locally and set service URL for development purpose.
Regards,
Dhanush Sekar
Hey Dhanush,
I have updated the versions of two Syncfusion packages in my project as follows:
@syncfusion/ej2-angular-buttons: "^23.2.7"
@syncfusion/ej2-angular-documenteditor: "^23.2.7"
For the server-side service URL, I am currently using Node.js and the following URL:
https://services.syncfusion.com/react/production/api/documenteditor/Import
On the client side, where I am using Angular, the targeted service URL is:
https://ej2services.syncfusion.com/production/web-services/api/documenteditor/
I also have the Syncfusion license key, which I am initializing in my Angular application with the following code:
registerLicense(environment.synfusionLicenseKey);
Despite these configurations, I am encountering errors. I would appreciate any assistance you can provide to resolve this issue.
Thank you.
Hi Sanket,
We will update the details on May 17, 2024.
Regards,
Dhanush Sekar
Hi Sanket,
Apologies for the delay.
The provided webservice project host URL is not functional.
https://ej2services.syncfusion.com/production/web-services/api/documenteditor/
Could you please confirm that whether you are facing issue with below sample? If yes, please share the input word document. It will be helpful to validate further and provide you the solution at earliest.
Sample : Taafex (forked) - StackBlitz
As we mentioned earlier, we are using above service URL for demo purpose only. Please run the below web service locally and set service URL for development purpose.
Regards,
Dhanush Sekar