2015-09-06 68 views
0

我打包https://github.com/bmoeskau/Extensible找到类:煎茶应用程序不包

sencha generate package -type code calendar 

然后我说行

package.framework=ext 

.sencha /包中包/ 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 refreshsencha 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 

我若从例的日历示例 FO Ext JS 5的版本,并以同样的方式打包,它的工作原理。

也许它与Extensible命名空间有关?我错过了关键的东西吗?

回答

0

我有一个名为"calendar"的旧包,位于我的packages目录下的package.json文件中。即使旧软件包的文件夹名称与其名称不匹配,但在编译应用程序时它会先载入。我在package.json文件中重命名了这个包。现在它可以工作并找到Extensible。