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

简介:

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

相关文章
|
开发工具 git
IDEA 错误运行’Application’: !invalid format: `命令行过长
刚刚在Git下拉的项目,启动的时候就报错了。记录一下
2628 0
IDEA 错误运行’Application’: !invalid format: `命令行过长
|
7天前
|
Python
IDA3.12版本的python,依旧报错IDAPython: error executing init.py.No module named ‘impRefer to the message win
IDA3.12版本的python,依旧报错IDAPython: error executing init.py.No module named ‘impRefer to the message win
|
5月前
|
SQL Java 数据库连接
错误:FUNCTION simple_notebook.count does not exist.解决方法
错误:FUNCTION simple_notebook.count does not exist.解决方法
|
5月前
|
编译器 Go 开发工具
JetBrains GoLand 以debug运行Go程序时出现could not launch process: decoding dwarf section info at offset 0x0: too short报错之保姆级别解决方案
JetBrains GoLand 以debug运行Go程序时出现could not launch process: decoding dwarf section info at offset 0x0: too short报错之保姆级别解决方案
54 0
|
JavaScript
Vue 打包后打开为空白页面 并且控制台报错‘Failed to load resource: net::ERR_FILE_NOT_FOUND’
Vue 打包后打开为空白页面 并且控制台报错‘Failed to load resource: net::ERR_FILE_NOT_FOUND’
Vue 打包后打开为空白页面 并且控制台报错‘Failed to load resource: net::ERR_FILE_NOT_FOUND’
|
9月前
|
数据采集 前端开发 测试技术
React项目中Manifest: Line: 1, column: 1, Syntax error的解决方法
大家好,今天和大家分享一个React项目中的一个小报错的解决方法。 在创建了一个项目后会有几个文件
sublime 打开报错 Error loading syntax file “Packages/HTML/HTML.sublime-syntax“: Apparent recursion withi
卸载步骤 打开sublime工具,按shift+command+p,打开输入框 输入remove package 输入 JavaScriptNext-ES6 Syntax,找到此插件,选中,enter卸载 重启sublime,弹出框消失
418 0
|
JavaScript
Vue运行时报错:ERROR Failed to compile with 1 errors ,浏览器报错:Cannot GET /
Vue运行时报错:ERROR Failed to compile with 1 errors ,浏览器报错:Cannot GET /
395 0
Vue运行时报错:ERROR Failed to compile with 1 errors ,浏览器报错:Cannot GET /
SAP GUI 遇到 Error in Parser-Thread 错误的解决方法
SAP GUI 遇到 Error in Parser-Thread 错误的解决方法
420 0
SAP GUI 遇到 Error in Parser-Thread 错误的解决方法
Appium问题解决方案(9)- Original error: Failed to launch Appium Settings app: Condition unmet after 5090 ms
Appium问题解决方案(9)- Original error: Failed to launch Appium Settings app: Condition unmet after 5090 ms
346 0
Appium问题解决方案(9)- Original error: Failed to launch Appium Settings app: Condition unmet after 5090 ms

热门文章

最新文章