Gantt ยท console.warn
gantt: dependency cycle detected ({path}); schedule refused.
Printed by Gantt, prefixed [lattice], since 1.34.0.
Warnings reference › gantt-cycle-*
- Identifier
gantt-cycle-*- Raised by
- Gantt
- Since
- 1.34.0
What happened
The dependency graph contains a cycle, so there is no order in which the tasks can be scheduled and the critical-path pass refuses rather than producing an arbitrary answer. The schedule result is { ok: false } with the cycle listed, and no dates are computed. The key carries the cycle, so two different cycles are two lines.
The fix
Break the cycle named in the message - the arrow chain is printed in order - by removing or reversing one of the dependencies.
Reference
Covered in full at the API reference.