Hello,
I get this error when I try to chance "Constraint Type":
All you have to do: Open task editor and change "Constraint Type" to "Must start ..."
import { DateHelper, Gantt, ProjectModel, StringHelper } from '../../build/gantt.module.js?456129';
import shared from '../_shared/shared.module.js?456129';
function setBaseline(index) {
gantt.taskStore.setBaseline(index);
}
function toggleBaselineVisible(index, visible) {
gantt.element.classList[visible ? 'remove' : 'add'](`b-hide-baseline-${index}`);
}
const project = window.project = new ProjectModel({
});
project.loadInlineData({"eventsData":[{"id":"PepchXV3SViTswgpYSz0MQ","name":"COMMERCIALISATION","startDate":"2021-04-29T10:00:00.000Z","endDate":"2021-05-01T10:00:00.000Z","percentDone":0,"expanded":true,"entities":"CodeEtape:ET00000003","children":[{"id":"4kaCfYtjSsWLEp-EpFf2wA","name":"Signature promesse Client ","startDate":"2021-04-29T10:00:00.000Z","endDate":"2021-04-29T10:00:00.000Z","percentDone":0,"expanded":false,"entities":"CodeEtape:ET00000003:CodeAction:ACT00000847","milestone":true,"treso":true,"vente":true,"rollup":true},{"id":"NH0hdrt1SCuelss-mBcwaA","name":"Signature acte de vente terrain aménagé ","startDate":"2021-04-29T10:00:00.000Z","endDate":"2021-04-29T10:00:00.000Z","percentDone":0,"expanded":false,"entities":"CodeEtape:ET00000003:CodeAction:ACT00000848","milestone":true,"treso":true,"vente":true,"rollup":true},{"id":"BvRyrSihQvuXbe4e_ShBWg","name":"Délai livraison client","startDate":"2021-04-29T10:00:00.000Z","endDate":"2021-05-01T10:00:00.000Z","percentDone":0,"expanded":false,"rollup":true},{"id":"WYT6tqynRrGP77LJWFvMzA","name":"Livraison client","startDate":"2021-05-01T10:00:00.000Z","endDate":"2021-05-01T10:00:00.000Z","percentDone":0,"expanded":false,"entities":"CodeEtape:ET00000003:CodeAction:ACT00000849","milestone":true,"treso":true,"vente":true,"rollup":true}],"rollup":true}],"dependenciesData":[{"id":"qsxx4u4tRACAPqLL-81MFQ","lag":0,"fromTask":"NH0hdrt1SCuelss-mBcwaA","toTask":"BvRyrSihQvuXbe4e_ShBWg","type":2},{"id":"tz_zM6bkStK2JFgdnsqRSg","lag":0,"fromTask":"BvRyrSihQvuXbe4e_ShBWg","toTask":"WYT6tqynRrGP77LJWFvMzA","type":2}]});
const gantt = new Gantt({
appendTo : 'container',
dependencyIdField : 'wbsCode',
project,
columns : [
{ type : 'name' }
],
subGridConfigs : {
locked : {
flex : 1
},
normal : {
flex : 2
}
},
// Allow extra space for baseline(s)
rowHeight : 60,
features : {
columnLines : false,
filter : true,
labels : {
left : {
field : 'name',
editor : {
type : 'textfield'
}
}
}
},
tbar : {
}
});