Our state of the art Gantt chart


Post by vivianus »

import { BryntumGantt } from 'bryntum-react-shared';

I just imported components and I reported an error:

Error: Bundle included twice, check cache-busters and file types (.js)
    at Function.setVersion (gantt.umd.js:35354)
    at Module../lib/Core/Base.js (gantt.umd.js:7063)
    at _0x5295f3 (gantt.umd.js:101)
    at Module../webpack.entry.js (gantt.umd.js:241038)
    at _0x5295f3 (gantt.umd.js:101)
    at ../node_modules/webpack/buildin/global.js (gantt.umd.js:168)
    at gantt.umd.js:169
    at webpackUniversalModuleDefinition (gantt.umd.js:85)
    at Object.<anonymous> (gantt.umd.js:86)
    at Object../node_modules/bryntum-gantt/gantt.umd.js (gantt.umd.js:243384)
    at __webpack_require__ (bootstrap:789)
    at fn (bootstrap:150)
    at Module../node_modules/bryntum-react-shared/BryntumGantt.js (BryntumGantt.js:1)
    at __webpack_require__ (bootstrap:789)
    at fn (bootstrap:150)
    at Module../node_modules/bryntum-react-shared/index.js (index.js:1)
    at __webpack_require__ (bootstrap:789)
    at fn (bootstrap:150)
    at Module../src/pages/Progress/components/GanttProgress.tsx (20.chunk.js:15)
    at __webpack_require__ (bootstrap:789)
    at fn (bootstrap:150)
    at Module../src/pages/Progress/PlanManagement/index.tsx (156.chunk.js:26)
    at __webpack_require__ (bootstrap:789)
    at fn (bootstrap:150)
    at Function.fn.t (bootstrap:194)
    at  groupOptions: {} namespace object:6776
    at async AsyncComponent.componentDidMount

Post by mats »

The error Bundle included twice usually means that somewhere you have imported both the normal and UMD versions of the Gantt package. Check inspect the code and import either UMD or normal version of the Gantt but not both. Gantt wrapper uses gantt.umd.js.


Post Reply