1

所以我一直在尝试在添加 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)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/Grid 错误(311)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/core/model/cache/Async 错误(311)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/modules/CellWidget 错误(311)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/modules/Edit 错误(311)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/modules/Filter 错误(311)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/modules/Pagination 错误(311)缺少依赖项。模块:应用程序/屏幕;依赖: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"
}
4

1 回答 1

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
],
于 2013-08-03T11:17:59.103 回答