码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2014-11-18 11:54:43      阅读:284      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   color   ar   使用   sp   java   

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

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

标签:style   blog   http   io   color   ar   使用   sp   java   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!