Canvas create shape

hi i’m trying to create a chatbot that generates the diagram when you type a task when trying to create the shape in the startevent command i always get this error
and i added the necessary bound hights of the shaper here

this.modeler.get('canvas').addShape(startEvent, { x:152, y:102, height:36, width:36 });

is there a solution please

Based on your comments I have no idea of you want to create a BPMN shape, or use diagram-js standalone with your customer diagram editor.

Hence, for assistance, please share a CodeSandbox that reproduces your issue in a way that we can inspect it.