SOLVED: setting this t-name template in the corresponding renderer.js file was missing:
static pillTemplate = "mycustommodule.GanttRenderer.Pill";