Hello, I am developing a gantt program using timeline/marker.
When I add this code:
gantt.addMarker({
start_date: new Date(2024, 1, 8),
title: "Start project"
})
It shows:
dhtmlx_gantt__WEBPACK_IMPORTED_MODULE_2__.gantt.addMarker is not a function
TypeError: dhtmlx_gantt__WEBPACK_IMPORTED_MODULE_2__.gantt.addMarker is not a function
at initGantt (webpack-internal:///./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/pages/zhongchuan/gutt.vue?vue&type=script&setup=true&lang=js:861:55)
at eval (webpack-internal:///./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/pages/zhongchuan/gutt.vue?vue&type=script&setup=true&lang=js:896:7)
at eval (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:2526:86)
at callWithErrorHandling (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:286:18)
at callWithAsyncErrorHandling (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:294:17)
at hook.__weh.hook.__weh (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:2508:19)
at flushPostFlushCbs (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:439:41)
at flushJobs (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:475:5)
BTW, I use the latest version, thanks.