Cannot read property 'addEventListener' of null

I would like to incorporate dhtmlxTree into a project I’m working on, but first as an experiment, I set up a small sample page shown below. However, even after following the initialization steps in the documentation word by word I’m still getting a “Cannot read property ‘addEventListener’ of null” error when I go to load the page. The source of the error is coming from the dhtmlx source code. Has anyone ran into something like this before or can tell me what I am doing wrong below?

Thanks!! :slight_smile:


File Tree Demo

What dhtmlx and browser version do you use?

dhtmlxTree v.4.1.2 Standard edition

Is this what you meant?

And I’m using the latest version of Chrome

Locally everything is fine. Please, provide completed demo on with link to this topic … pport.html