NPM downloads Gantt ext without dhtmlxgantt_critical_path.js Error reporting Gantt undefined in JS Vue found in official cases
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
- If your Gantt version is 6.1.x, you need to replace the
package.jsonfile with the following one:
- Use the following command to install Gantt:
npm install /opt/gantt_pro
You can read more about installation methods in the following article:
After that, you can install add the critical path extension by adding the following string in the
import 'dhtmlx-gantt'; import 'dhtmlx-gantt/codebase/ext/dhtmlxgantt_critical_path';