zoukankan      html  css  js  c++  java
  • [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:workspacesmyeclipse2014 ewcourtWebRoot.senchaappuild-impl.xml:260: The
     following error occurred while executing this line:
    E:workspacesmyeclipse2014 ewcourtWebRoot.senchaappjs-impl.xml:59: com.sen
    cha.exceptions.ExBuild: Failed to compress input


    看错误第一行就能够看出是解析 debugger的时候出错的,看我的代码,发现我调试的时候debugger写入了没有去掉,打包的时候就出现了这个错误,将debugger去掉。再又一次打包。发现,程序正常打包。

  • 相关阅读:
    AFNetwork 作用和用法详解
    ios 常见错误记录
    UIView的setNeedsLayout, layoutIfNeeded 和 layoutSubviews 方法之间的关系解释
    AutoLayout
    矩阵的法式
    极小多项式
    对角化
    线性映射
    线性方程组的解
    特征值和特征向量
  • 原文地址:https://www.cnblogs.com/liguangsunls/p/6723126.html
Copyright © 2011-2022 走看看