Cannot read properties of null (reading 'nextSibling')

为什么我一切换计划的类型就会出现Cannot read properties of null (reading ‘next
index.vue (6.5 KB)
Sibling’)

Hello,
Unfortunately, I couldn’t reproduce the error on my side. Please check this example based on your config:
https://files.dhtmlx.com/30d/3d08b573e1f7a7ef8beb4a421b57c6d1/vue-gantt-nextSibling.zip

Could you send a demo where the issue can be replicated?

image
image


根据这个步骤来就会出现这个错误了

Hello,
Thanks for the additional details. The issue happens because the version from NPM is the free (GPL) one — it doesn’t support task types. This is a PRO-only feature:
https://docs.dhtmlx.com/gantt/desktop__typeselect.html

To fix it, you can:

  • Use the PRO or Trial version
  • Or, if you stay on the free version, you’ll need to create task types and lightbox sections manually