[ExtJS5学习笔记]第二十七节 CMD打包错误 Error C2009: YUI Parse Error (identifier is a reserved word => debugger;)

本文地址:http://blog.csdn.net/sushengmiyan/article/details/41242993

本文作者: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去掉,再重新打包,发现,程序正常打包。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 7
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值