所以我在添加gridx小部件之后一直试图让我的DOJO构建
我在app.profile.js文件中添加了gridx模块,如下所示:
layers: {
"gridx/gridx": {
include: [
"gridx/Grid",
"gridx/core/model/cache/Async",
"gridx/modules/CellWidget",
"gridx/modules/Edit",
"gridx/modules/Filter",
"gridx/modules/Pagination",
"gridx/modules/pagination/PaginationBar"
]
}
}
在编译期间,我不断收到这些错误。
错误(311)缺少依赖性。模块:app / screen;依赖:js / plugins / gridx / Grid 错误(311)缺少依赖性。模块:app / screen;依赖:js / plugins / gridx / core / model / cache / Async 错误(311)缺少依赖性。模块:app / screen;依赖:js / plugins / gridx / modules / CellWidget 错误(311)缺少依赖性。模块:app / screen;依赖:js / plugins / gridx / modules /编辑 错误(311)缺少依赖性。模块:app / screen;依赖:js / plugins / gridx / modules / Filter 错误(311)缺少依赖性。模块:app / screen;依赖:js / plugins / gridx / modules / Pagination 错误(311)缺少依赖性。模块:app / screen;依赖:js / plugins / gridx / modules / pagination / PaginationBar
不确定我在这里缺少什么我现在已经排除了一段时间。
packages.json代码
{
"name": "app",
"version": "1.0",
"dependencies": {
"dojo": "current",
"dijit": "current",
"dojox": "current",
"util": "current",
"gridx": "current",
},
"description": "app Components Package",
"dojoBuild": "app-common.profile.js"
}
答案 0 :(得分:0)
您的构建配置文件需要一个包部分,该部分将告知构建gridx代码所在的位置。
<强> build.profile.js 强>
basePath: "../dojo-release-1.8.3-src",
...
packages:[
{name: 'dojo', location: 'dojo'},
{name: 'dijit', location: 'dijit'},
{name: 'dojox', location: 'dojox'},
{name: 'gridx', location: '../PATH/TO/gridx'} // path is relative from basePath
],