Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gantt is undefined #124

Open
ATestEnG opened this issue Sep 30, 2024 · 2 comments
Open

Gantt is undefined #124

ATestEnG opened this issue Sep 30, 2024 · 2 comments

Comments

@ATestEnG
Copy link

version "dhtmlx-gantt": "8.0.6",
import {gantt,Gantt} from "dhtmlx-gantt";
image
i try many time, it is aways undefined
little "g" is an Object but capital 'G' is undefined
image

@ATestEnG
Copy link
Author

by the way construct is vue3 + ts + vite

@gearcoded
Copy link

@ATestEnG, it seems that you try to use the GPL version. It doesn't have the feature of creating a new Gantt instance, so the Gantt object is not available. This feature is available in the Pro versions (Commercial, Enterprise, Ultimate licenses):
https://docs.dhtmlx.com/gantt/desktop__multiple_gantts.html

So, you need to purchase the license and install the Pro version to get this feature.
Or you can continue using the GPL version, but you need to manually reset everything when you switch to another page/tab/view instead of using the destructor method.
The following article explains what should be done:
https://docs.dhtmlx.com/gantt/desktop__gantt_instance.html

Here is the demo:
https://files.dhtmlx.com/30d/c0a7cdde5ff4139e785733d9bfdbc9fb/vue3+gantt-gpl.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants