Extjs Sencha应用在包中找不到类
我认为: 然后我加了一行Extjs Sencha应用在包中找不到类,extjs,package,classpath,extensible,Extjs,Package,Classpath,Extensible,我认为: 然后我加了一行 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" *
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
如果我从ExtJS5的examples文件夹中获取calendar示例,并以相同的方式进行打包,它就会工作
可能与
可扩展的命名空间有关?我遗漏了一些重要的东西吗?
我的软件包目录中的package.json文件中有一个名为“calendar”的旧软件包。尽管旧软件包的文件夹名称与它的名称不匹配,但它是在我编译应用程序时首先加载的。我在package.json文件中重命名了包。现在它可以工作了,并且可以扩展了。我的packages目录中的package.json文件中有一个名为“calendar”的旧包。尽管旧软件包的文件夹名称与它的名称不匹配,但它是在我编译应用程序时首先加载的。我在package.json文件中重命名了包。现在它可以工作了,并且可以扩展
$ 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