Lattice Grid Buy a licence

Gantt ยท console.warn

gantt: dependency type {type} carries a lag of {lag} but lag: {explicit} was also given; the explicit lag wins. Give one or the other.

Printed by Gantt, prefixed [lattice], since 1.52.0.

Warnings referencegantt-link-shorthand-*-*

Identifier
gantt-link-shorthand-*-*
Raised by
Gantt
Since
1.52.0

What happened

The dependency's type used the shorthand that embeds a lag (FS+2, SS-1) *and* a separate lag was supplied, and the two disagree. The explicit lag is used and the shorthand's number discarded, so the link is scheduled with the value you wrote in the property rather than in the string.

The fix

Give the lag once: either in the type shorthand or in lag.

The smallest fix

dependencies: [{ from: 'a', to: 'b', type: 'FS', lag: 2 }]

Reference

Covered in full at the API reference.