Discuss anything related to web development but no technical support questions


Post by katebishop »

Hi Bryntum team,
I'm encountering an issue when using the Gantt component (v5.5.2) in my application. Whenever I attempt to load a project using project.loadInlineData(), I get the following error in the console:

Uncaught TypeError: Cannot read properties of undefined (reading 'isProject')
    at Gantt.js:1023

Here’s a simplified version of my setup:

const project = new ProjectModel({
    tasksData: [
        { id: 1, name: 'Project', expanded: true, children: [
            { id: 2, name: 'Task 1', startDate: '2025-04-01', duration: 5 },
            { id: 3, name: 'Task 2', startDate: '2025-04-06', duration: 3 }
        ]}
    ],
    dependenciesData: []
});

const gantt = new Gantt({
    adopt: 'gantt-container',
    project
});

I’ve double-checked the task structure and data format, but I can’t figure out what’s causing the issue. This error started happening after I upgraded from v5.4.0 to v5.5.2. Am I missing something in the configuration? Has there been a change in how the project model should be initialized?
Chill Guy Game


Post by mats »

No, no changes to project model. Any chance you can share a small test case with us?

Tried upgrading to latest?


Post Reply