NPM downloads Gantt ext without dhtmlxgantt_critical_path.js Error reporting Gantt undefined in JS Vue found in official cases
Hello,
The critical path is available only in the Pro and Trial versions.
When you install Gantt via npm install
, you obtain the standard version.
We don’t have an NPM package of the Pro version. But you can install Gantt as an NPM package the following way:
- Unpack Gantt to a specific folder, for example, to
/opt/gantt_pro
- If your Gantt version is 6.1.x, you need to replace the
package.json
file with the following one:
https://files.dhtmlx.com/30d/cb80c0faf513b1caab81d79fe9266c4e/package.json - Use the following command to install Gantt:
npm install /opt/gantt_pro
You can read more about installation methods in the following article:
https://docs.dhtmlx.com/gantt/desktop__install_with_bower.html#addingproeditionintoproject
After that, you can install add the critical path extension by adding the following string in the Gantt.vue
file:
import 'dhtmlx-gantt';
import 'dhtmlx-gantt/codebase/ext/dhtmlxgantt_critical_path';