我有一个使用wirejs 进行依赖注入的dojo 应用程序。
当我尝试构建应用程序时,我在“when”和“meld”模块上遇到依赖错误。如下所示:
error(311) Missing dependency. module: wire/dojo/events; dependency: when
error(311) Missing dependency. module: wire/dojo/pubsub; dependency: meld
error(311) Missing dependency. module: wire/dom/render; dependency: when
error(311) Missing dependency. module: wire/lib/plugin-base/dom; dependency: when
我的 dojo 构建配置文件的相关部分如下:
var packagesDir = 'web-app/js/packages',
profile = {
defaultConfig: {
hasCache:{
"dojo-built": 1,
"dojo-loader": 1,
"dom": 1,
"host-browser": 1,
"config-selectorEngine": "lite",
"config-tlmSiblingOfDojo":0
},
async: 1
},
packages : [
{
name : 'app',
location : packagesDir + '/app'
},{
name : 'dojo',
location : packagesDir + '/dojo'
},{
name : 'dijit',
location : packagesDir + '/dijit'
},{
name : 'dojox',
location : packagesDir + '/dojox'
},
{
name : 'meld',
location : packagesDir + '/meld',
packageJson : {
dojoBuild : "../../../profiles/meld.profile.js"
}
},
{
name : 'poly',
location : packagesDir + '/poly',
packageJson : {
dojoBuild : "../../../profiles/poly.profile.js"
}
},
{
name : 'when',
location : packagesDir + '/when',
packageJson : {
dojoBuild : "../../../profiles/when.profile.js"
}
},
{
name : 'wire',
location : packagesDir + '/wire',
packageJson : {
dojoBuild : "../../../profiles/wire.profile.js"
}
}
我在这里错过了什么吗?
谢谢 !