your diagram.js is not imported successfully on the page.
If the problem still occurs for you please, provide a complete demo, where the problem can be reconstructed locally.
Unfortunately it is not availble to include the sources of the diagram on the page using the import.
THe only solution is to place the js,css sources on your index.html page like common js scripts and css stylesheets.
inlcude the scripts for diagram in index.html
and then in your component use
diagram = new window.dhx.Diagram(“diagram”, {
type: “org”,
defaultShapeType: “template”,
margin: {
itemX: 50,
itemY: 50,
},
//scale: 0.6,
});
use window. before dhx.diagram
1 Like
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan