gantt.setParent() always throws an error when attempting to move a nested task to the root. For example:
I found that
gantt.moveTask(anyNestedTaskId, 0, gantt.config.root_id); works as expected as a workaround, but if this is the intended behavior the documentation doesn’t make that clear.
Here’s a minimal example to reproduce: