gpt4 book ai didi

Extjs 6 - 自定义主题包错误

转载 作者:行者123 更新时间:2023-12-01 13:47:32 25 4
gpt4 key购买 nike

我在 extjs 6 应用程序中遇到需要自定义主题包的问题。我创建了一个扩展 Triton 主题的自定义主题包,构建了该包并将 .pkg 添加到本地存储库。然后,我将该包添加到我应用程序的 app.json 文件中的 requires block 中,并运行 sencha app refresh -packages。然后出现以下错误:

rook$ sencha app refresh -packages
Sencha Cmd v6.0.2.14
[INF] Processing Build Descriptor : classic
[INF] Refreshing packages for build : classic
[ERR] Cannot satisfy requirements for "theme-neptune"!
[ERR] The following versions cannot be satisfied:
[ERR] new-test-theme: theme-neptune (No matches!)
[ERR] Cannot resolve package requirements

这是我的自定义主题包的 package.json 文件:

{
"name": "new-test-theme",
"namespace": "New.test.theme",
"type": "theme",
"extend": "theme-triton",
"toolkit": "classic",
"creator": "pr-repo",
"summary": "Short summary",
"detailedDescription": "Long description of package",
"version": "1.0.1",
"compatVersion": "1.0.0",
"format": "1",
"slicer": {
"js": [
{
"path": "${package.dir}/sass/example/custom.js",
"isWidgetManifest": true
}
]
},
"output": "${package.dir}/build",
"local": true,
"sass" : {
"namespace": "New.test.theme",
"etc": "${package.dir}/sass/etc/all.scss,${package.dir}/${toolkit.name}/sass/etc/all.scss",
"var": "${package.dir}/sass/var,${package.dir}/${toolkit.name}/sass/var",
"src": "${package.dir}/sass/src,${package.dir}/${toolkit.name}/sass/src"
},
"classpath": "${package.dir}/src,${package.dir}/${toolkit.name}/src",

"overrides": "${package.dir}/overrides,${package.dir}/${toolkit.name}/overrides",

"example": {
"path": [
"${package.dir}/examples"
]
},

"framework": "ext",

"requires": [
]
}

然后在我的应用程序 app.json 文件中我需要包:

"requires": [
"font-awesome",
"new-test-theme"
],

我正在运行:Sencha Cmd v6.0.2.14ext-6.0.1

谁能看出是什么导致了这个错误?

最佳答案

我认为您需要设置 theme 属性,而不是将其添加到您的 requires 属性中。

应该看起来像:

"builds": {
"classic": {
"toolkit": "classic",
"theme": "new-test-theme"
},

"modern": {
"toolkit": "modern",
"theme": "new-test-theme"
}
}

关于Extjs 6 - 自定义主题包错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34803985/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com