我包装了https://github.com/bmoeskau/Extensible
sencha generate package -type code calendar然后我加了一行
package.framework=ext到. .sencha/ package /sencha.cfg中。
并要求我的应用程序的app.json包:
/**
* The list of required packages (with optional versions; default is "latest").
*
* For example,
*
* "requires": [
* "sencha-charts"
* ]
*/
"requires": [
"calendar"
],该包使用sencha package build成功编译,但当我运行sencha app refresh或sencha app build来构建需要该包的应用程序时,会发生以下错误:
$ sencha app refresh
Sencha Cmd v5.1.3.61
[INF] Processing Build Descriptor : default
[INF] Loading app json manifest...
[ERR] C2008: Requirement had no matching files (Extensible.calendar.CalendarPanel) -- /.../app/view/main/Main.js:20:442
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for /.../app/view/main/Main.js::ClassRequire::Extensible.calendar.CalendarPanel
[ERR]
[ERR] Total time: 4 seconds
[ERR] The following error occurred while executing this line:
/Users/me/bin/Sencha/Cmd/5.1.3.61/plugins/ext/current/plugin.xml:403: The following error occurred while executing this line:
/.../.sencha/app/build-impl.xml:378: The following error occurred while executing this line:
/.../.sencha/app/init-impl.xml:303: com.sencha.exceptions.ExBuild: Failed to find any files for /.../app/view/main/Main.js::ClassRequire::Extensible.calendar.CalendarPanel如果我从Ext 5的Ext 5的示例文件夹中获取日历示例,并以相同的方式打包它,它就会工作。
Extensible 可能与命名空间有关?我错过了什么关键的东西吗?
发布于 2015-09-08 09:46:39
在我的packages目录中,它的package.json文件中有一个名为package.json的旧包。尽管旧包的文件夹名与其名称不匹配,但在我编译应用程序时,它是第一个加载的。我在它的package.json文件中重命名了这个包。现在它起作用了,并且找到了可扩展的。
https://stackoverflow.com/questions/32427402
复制相似问题