taskboard.module.js:1269 Uncaught Error: The Bryntum Grid bundle was loaded multiple times by the application.
Common reasons you are getting this error includes:
* Imports point to different types of the bundle (e.g. *.module.js and *.umd.js)
* Imports point to both sources and bundle
* Imports do not use the shortest relative path, JS treats them as different files
* Cache busters differ between imports, JS treats grid.module.js?1 and grid.module.js?2 as different files
* Imports missing file type, verify they all end in .js
See https://bryntum.com/products/grid/docs/guide/Grid/gettingstarted/es6bundle#troubleshooting for more information
at _VersionHelper.setVersion (taskboard.module.js:1269:17)
at taskboard.module.js:3297:15
I can import 'thin' libraries but gantt still can't work: This is the error message.
Cannot read properties of null (reading 'classList')
at Rectangle.client (Rectangle.js:221:36)
at Gantt.onInternalResize (GridElementEvents.js:764:35)
at Gantt.onInternalResize (GridBase.js:1186:11)
at Gantt.onElementResize (Widget.js:4543:10)
at ResizeObserver.onElementResize (ResizeMonitor.js:120:13)
Hi,
I am able to run "thin" library with local data but for remote data, it doesn't work. with the same project config like this. It able to get data with old library but with "thin" library, it never return to load listener.
this.ganttProject$.next({
transport: {
load: {
// url: '../lib/launch-saas.json'
url: loadUrl,
headers: {
Authorization: "Bearer " + this.token
},
paramName: 'q'
},
sync: {
url: syncUrl,
headers: {
Authorization: "Bearer " + this.token
}
}
},
autoLoad: true,
autoCommit: true,
autoSync: true,
// The State TrackingManager which the UndoRedo widget in the toolbar uses
stm: {
autoRecord: true
},
listeners: {
load: ({ response }) => {
console.log('response ', response);
},
sync: ({ response }) => {
if (response || response.success) {
}
}
},
// This config enables response validation and dumping of found errors to the browser console.
// It's meant to be used as a development stage helper only so please set it to false for production systems.
validateResponse: true,
});
It looks like I can't use 'thin' library with project transport to load and save automatically.
It is so simple to work with Kendo library but with bryntum, it is too much works.
Could you please double check and help me out?
Thank you.
Would it be possible for you to upload a runnable test app here so we can reproduce the issue and debug it? Without seeing/testing the code it's very difficult to say what's wrong.