我使用了Sencha 4.2.1 GPL并决定购买许可证。 当安装5.1并升级cmd时,现在当我尝试构建我的旧应用程序时,我一直遇到同样的错误,但奇怪的是&#34; sencha app watch&#34; 正在运行。< / p>
[INF] Compressing data with YuiJavascriptCompressor
[ERR] C2009: YUI Parse Error (missing while after do-loop body =>
; while ((t = t.parentNode) && 1 === t.nodeType);) -- unknown-file:149
290:25
[ERR] C2009: YUI Parse Error (Compilation produced 1 syntax errors. => null) --
unknown-file:2
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to compress input
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown So
[ERR] urce)
[ERR]
[ERR] Total time: 12 seconds
[ERR] The following error occurred while executing this line:
D:\Customer Projects\GIS\.sencha\app\build-impl.xml:255: The following error occ
urred while executing this line:
D:\Customer Projects\GIS\.sencha\app\js-impl.xml:53: com.sencha.exceptions.ExBui
ld: Failed to compress input
[ERR]
The application was last modified by an older version of Sencha Cmd (4.0.1.45)
the current is 5.1.0.26.
Please run "sencha app upgrade" to update to 5.1.0.26.
升级后,我收到以下错误:
[WRN] C1019: Namespace conflicts with defined class name (Class Ext.Toolbar used
as namespace by Ext.Toolbar.TextItem) -- D:\Customer Projects\GIS\
ext\src\toolbar\Toolbar.js:208
[INF] Compressing data with YuiJavascriptCompressor
[ERR] C2009: YUI Parse Error (missing while after do-loop body =>
; while ((t = t.parentNode) && 1 === t.nodeType);) -- unknown-file:146
756:25
[ERR] C2009: YUI Parse Error (Compilation produced 1 syntax errors. => null) --
unknown-file:2
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to compress input
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown So
[ERR] urce)
[ERR]
[ERR] Total time: 10 seconds
[ERR] The following error occurred while executing this line:
D:\Customer Projects\GIS\.sencha\app\build-impl.xml:266: The follow
ing error occurred while executing this line:
D:\Customer Projects\GIS\.sencha\app\js-impl.xml:71: com.sencha.exc
eptions.ExBuild: Failed to compress input
如何构建应用程序或是否需要降级到cmd 4?
修改 我已经卸载了Sencha Cmd 5并设法用4来构建......很奇怪。
答案 0 :(得分:0)
在附近的代码上使用YUI Compressor时失败:
YUI Parse Error (missing while after do-loop body =>
; while ((t = t.parentNode) && 1 === t.nodeType);) -- unknown-file:146
我不知道为什么它会给你提供文件名为&#34; unknown-file&#34;但是你应该能够在1 === t.nodeType
的项目源代码中进行搜索,并且应该缩小范围。