When connecting the DocumentEditor in React TS gives such an error, I did everything according to the documentation.
import { DocumentEditorContainerComponent, Toolbar } from "@syncfusion/ej2-react-documenteditor";
import * as React from "react";
DocumentEditorContainerComponent.Inject(Toolbar);
export default class App extends React.Component {
render() {
return (
<DocumentEditorContainerComponent
id="container"
style={{ height: "590px" }}
serviceUrl="https://ej2services.syncfusion.com/production/web-services/api/documenteditor/"
enableToolbar={true}
/>
);
}
}