【问题标题】:classic is not defined err when trying to start Extjs6 AdminDashboard app尝试启动 Extjs6 Admin Dashboard 应用程序时,经典未定义错误
【发布时间】:2016-03-01 09:13:15
【问题描述】:

当我尝试使用命令 sencha app watchsencha app watch classic 启动管理仪表板应用程序时,我在浏览器控制台 Uncaught ReferenceError: classic is not defined 中收到此错误。 这是截图:。 Sencha cmd版本为6.0.2.14。

如果我切换到 sencha cmd 6.1.0.65,我什至无法构建应用程序。在sencha app build -devsencha app build classic 之后,我在控制台中收到错误:

[ERR] 
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Timed out waiting for sass build completion
[ERR]     at sun.reflect.Delegati
[ERR] ngMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERR] 
[ERR] Total time: 2 minutes 25 seconds
[ERR] ================= Phantomjs Output =================
[ERR] loading page http://localhost:1841/sass/example/fashion.html?phantomjs=true
successfully loaded page http://localhost:1841/sass/example/fashion.html?phantomjs=true
loading phantomjs adapter
== Unhandled Error ==
TypeError: undefined is not an object (evaluating 'item.uses.length')


  http://localhost:1841/sass/example/bootstrap.js:921 in getLoadIndexes
  http://localhost:1841/sass/example/bootstrap.js:963 in expandUrl
  http://localhost:1841/sass/example/bootstrap.js:999 in expandUrls
  http://localhost:1841/sass/example/bootstrap.js:1024 in expandLoadOrder
  http://localhost:1841/sass/example/bootstrap.js:1042 in getUrls
  http://localhost:1841/sass/example/bootstrap.js:1060 in getEntries
  http://localhost:1841/sass/example/bootstrap.js:1091 in loadEntries
  http://localhost:1841/sass/example/bootstrap.js:696 in processRequest
  http://localhost:1841/sass/example/bootstrap.js:716 in load
  http://localhost:1841/sass/example/bootstrap.js:2163 in onCachedAssetsReady
  http://localhost:1841/sass/example/bootstrap.js:2128 in load
  http://localhost:1841/sass/example/bootstrap.js:2069
  http://localhost:1841/sass/example/bootstrap.js:822 in readyStateChange


[ERR] ============= End Phantomjs Output =================
[ERR] The following error occurred while executing this line:
/home/user/projects/SenchaTestDemo/AdminDashboard/.sencha/app/build-impl.xml:335: The following error occurred while executing this line:
/home/user/projects/SenchaTestDemo/AdminDashboard/.sencha/app/slice-impl.xml:386: The following error occurred while executing this line:
/home/user/projects/SenchaTestDemo/AdminDashboard/.sencha/app/slice-impl.xml:387: The following error occurred while executing this line:
/home/user/projects/SenchaTestDemo/AdminDashboard/.sencha/app/slice-impl.xml:122: com.sencha.exceptions.ExBuild: Timed out waiting for sass build completion

您对正在发生的事情有任何想法吗?

谢谢。

P.S:这是一个 link 到 Admin Dashboard 应用示例。

【问题讨论】:

  • 您是否尝试缩小问题范围?比如删除 sass 文件夹
  • @aviram83 我找到了working example,并且有来自 github 的源代码,对我来说已经足够了。

标签: extjs sencha-cmd extjs6 extjs6-classic


【解决方案1】:

命令问题: 使用Cmd 6.0.2.14,编译sass时6.1.0.65上好像有an issue

构建问题:

Uncaught ReferenceError: classic is not defined

所以您可能下载了示例,导航到文件夹并运行sencha app watch 对吧?在示例中,ext/ 文件夹中没有框架,并且 Cmd 似乎自动下载了框架的公共版本,不幸的是,您需要 6.0.1.250。

所以删除 SenchaTestDemo-master\AdminDashboard\ext 中的所有内容并手动将最新的 Ext 6.0.1.250 框架复制到其中,您可以从 sencha.com 下载该框架

【讨论】:

  • 默认情况下根本没有no /ext folder,所以你需要先做sencha app buildsencha app upgrade 6.0.1.250 返回Application structure already at current cmd version 所以我不认为这是一个案例。谢谢你的回答
猜你喜欢
  • 1970-01-01
  • 2017-01-09
  • 2019-06-28
  • 2015-02-14
  • 1970-01-01
  • 1970-01-01
  • 2017-01-06
  • 2013-07-05
  • 1970-01-01
相关资源
最近更新 更多