Error when using resources with custom scales

I’m using gantt with custom scales and custom resources, workload calculation made by us.
When I try to load data an error occurs:

this.gantt.clearAll();
this.resourcesStore.clearAll();
this.resourcesStore.parse(this.resourceData);
this.gantt.parse(ganttData);
this.gantt.refreshData();

TypeError: Cannot read properties of undefined (reading '$config')
    at Object.scrollTo (dhtmlxgantt.js:11:162618)
    at Object.showTask (dhtmlxgantt.js:11:163400)
    at t.attachEvent.once (dhtmlxgantt.js:11:275129)
    at Object.t (dhtmlxgantt.js:11:10433)
    at Object.i (dhtmlxgantt.js:11:10263)
    at Object.t.callEvent (dhtmlxgantt.js:11:10941)
    at Object.t.render (dhtmlxgantt.js:11:330986)
    at Object.t._process_loading (dhtmlxgantt.js:11:378226)
    at Object.t.on_load (dhtmlxgantt.js:11:378016)
    at Object.t.parse (dhtmlxgantt.js:11:377535)

Today I notice that same error occurs when scale level is set:

this.gantt.ext.zoom.setLevel(level);

Error:

dropdownOption.vue?8e4d:21 TypeError: Cannot read properties of undefined (reading '$config')
    at Object.scrollTo (dhtmlxgantt.js:11:162618)
    at Object.showTask (dhtmlxgantt.js:11:163400)
    at t.attachEvent.once (dhtmlxgantt.js:11:275129)
    at Object.t (dhtmlxgantt.js:11:10433)
    at Object.i (dhtmlxgantt.js:11:10263)
    at Object.t.callEvent (dhtmlxgantt.js:11:10941)
    at Object.t.render (dhtmlxgantt.js:11:330986)
    at t._setLevel (dhtmlxgantt.js:11:150147)
    at t.setLevel (dhtmlxgantt.js:11:149256)

I was able to investigate problem a bit more and problem is in this line:


Fore some reason I have 3 horizontalViews and 2 verticalViews.
Horizontal views:

Vertical views:

And my layout configuration:
layout.json (1.9 KB)

Hello Wolland,
Thank you for sending the layout configuration and providing the additional details.
It seems that you encountered a bug that was fixed in the 7.1.9 version:
https://docs.dhtmlx.com/gantt/whatsnew.html#:~:text=Fix%20the%20script%20error%20that%20was%20thrown%20after%20loading%20Gantt%20if%20a%20horizontal%20scrollbar%20was%20attached%20to%203%20or%20more%20vertical%20views

You can check how it works in the following snippets:
https://snippet.dhtmlx.com/5/6aecbdfdc
https://snippet.dhtmlx.com/ff5ygky5