1

我需要帮助,我不能在 angular-gantt 中使用任务之间的依赖关系。我发现了这个错误:

TypeError:无法在新的 DependenciesManager (http://localhost:8080/ ....

HTML文件代码:

<div class="col-sm-12"
                 gantt data=gantEventsData
                 from-date="ganttOptions.fromDate"
                 to-date="ganttOptions.toDate"
                 view-scale="ganttOptions.scale"
                 headers="ganttOptions.headers"
                 current-date="ganttOptions.currentDate"
                 max-height="ganttOptions.maxHeight"
                 side-width = "ganttOptions.sideWidth"
                 allow-side-resizing="ganttOptions.allowSideResizing" >
                <gantt-dependencies></gantt-dependencies>
                <gantt-tree></gantt-tree>
            </div>

package.json 中的依赖对象

"{
  "_from": "jsplumb@2.3.2",
  "_id": "jsplumb@2.3.2",
  "_inBundle": false,
  "_integrity": "sha1-onPSUrbOhRakECj8mdzGSKKct7g=",
  "_location": "/jsplumb",
  "_phantomChildren": {},
  "_requested": {
    "type": "version",
    "registry": true,
    "raw": "jsplumb@2.3.2",
    "name": "jsplumb",
    "escapedName": "jsplumb",
    "rawSpec": "2.3.2",
    "saveSpec": null,
    "fetchSpec": "2.3.2"
  },
  "_requiredBy": [
    "#USER",
    "/"
  ],
  "bundleDependencies": false,
  "deprecated": false,
  "description": "Visual connectivity for webapps",
  "devDependencies": {
    "biltong": "^0.4.0",
    "grunt": "~0.4.1",
    "grunt-contrib-clean": "~0.5.0",
    "grunt-contrib-concat": "~0.3.0",
    "grunt-contrib-connect": "^0.11.2",
    "grunt-contrib-copy": "~0.4.1",
    "grunt-contrib-jshint": "~0.6.2",
    "grunt-contrib-qunit": "^0.7.0",
    "grunt-contrib-uglify": "~0.2.2",
    "grunt-contrib-watch": "~0.5.3",
    "grunt-contrib-yuidoc": "0.5.2",
    "grunt-exec": "^1.0.1",
    "grunt-jekyll": "~0.4.1",
    "grunt-qunit-junit": "^0.3.1",
    "jsbezier": "^0.9.1",
    "katavorio": "^0.19.2",
    "morgan": "1.8.0",
    "mottle": "^0.8.0"
  },

}
4

1 回答 1

1

库未加载。试着放在<script src="node_modules/jsplumb/dist/js/jsplumb.min.js"></script>加载的node_modules脚本之上

于 2019-08-14T14:34:59.503 回答