Getting error in Tree View

Hi,
I have used the same JS code that is mentioned on this page GoJS Tree View

**so I am passing only the div ID inside the above diagram** but still, I am getting an error.

Can you guide me, how i can fix this error even if I pass only the ID in html div element?

If you are using Vue, I’m not sure you can pass the id of the Div element. Look at this Vue 3 example: gojs-vue-basic/src/components/Diagram.vue at main · NorthwoodsSoftware/gojs-vue-basic · GitHub