[ExtJS5学习笔记]第二十七节 CMD打包错误 Error C2009: YUI Parse Error (identifier is a reserved word => debu
Posted liguangsunls
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[ExtJS5学习笔记]第二十七节 CMD打包错误 Error C2009: YUI Parse Error (identifier is a reserved word => debu相关的知识,希望对你有一定的参考价值。
本文地址: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 => debu的主要内容,如果未能解决你的问题,请参考以下文章