gantt.addMarker is not a function

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.

王辰???
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)

甘特图引入了吗?

引入了

import { gantt } from 'dhtmlx-gantt'
import 'dhtmlx-gantt/codebase/dhtmlxgantt.css'
import 'dhtmlx-gantt/codebase/sources/dhtmlxgantt.js'

这个好像是他们新版本的一个bug
我看到有个问题评论里面说的

收到,感谢!紫薯布丁紫薯布丁紫薯布丁紫薯布丁

要 一起交流一下甘特图吗?哈哈哈 你刚开始开发吗?

这个问题看到的

好啊好啊,我是项目需要刚刚接触这个插件,怎么联系

Hello,
Please ask the questions only in English so that everyone can understand what you want to say.
If you want to write a personal message to one another, you can click on the user icon and choose the Message option.

If you see the gantt.addMarker is not a function error, it means that you didn’t enable the vertical marker extension via the plugins method:
https://docs.dhtmlx.com/gantt/desktop__markers.html

Here is a simple example:
https://snippet.dhtmlx.com/w133uv56