[ExtJS5学习笔记]第二十七节 CMD打包错误 Error C2009: YUI Parse Error (identifier is a reserved word => debugger;)
最后更新于:2022-04-01 07:37:28
本文地址:[http://blog.csdn.net/sushengmiyan/article/details/41242993](http://blog.csdn.net/sushengmiyan/article/details/41242993)
本文作者:[sushengmiyan](http://blog.csdn.net/sushengmiyan)
------------------------------------------------------------------------------------------------------------------------------------
使用cmd打包ext的时候报了一个诡异的错误。细细找来,发现是代码书写导致。现在记录一下:
错误详细信息:
[ERR] C2009: YUI Parse Error (identifier is a reserved word =>
debugger;) -- unknown-file:198775:12
[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 com.sencha.tools.compressors.yui.
[ERR] YuiJavascriptCompressor$2.invoke(YuiJavascriptCompressor.java:103)
[ERR]
[ERR] Total time: 10 seconds
[ERR] The following error occurred while executing this line:
E:\workspaces\myeclipse2014\newcourt\WebRoot\.sencha\app\build-impl.xml:260: The
following error occurred while executing this line:
E:\workspaces\myeclipse2014\newcourt\WebRoot\.sencha\app\js-impl.xml:59: com.sen
cha.exceptions.ExBuild: Failed to compress input
看错误第一行就可以看出是解析 debugger的时候出错的,看我的代码,发现我调试的时候debugger写入了没有去掉,打包的时候就出现了这个错误,将debugger去掉,再重新打包,发现,程序正常打包。