-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error JS_Parse_Error #1465
Comments
Finally I made debug build and run uglifyjs over build/jsb-default/src/* files. It shows me full error description so I fixed the issue. |
Thanks @DrMoriarty, Is it an error about ES6 used in plugin scripts? |
@jareguo Yes, it shows an error for every using |
Sorry you can not use ES6 in plugin scripts! you should transpile to ES5 by yourself. |
Hello!
My project can be built successfully in Debug mode (for iOS and Android). But when I disable debug mode and try to build I get this error:
As far as I see uglify-js should throw new JS_Parse_Error with additional information in what file and where it has troubles. But I not see this information in CocosCreator log. It shows me only the stack log but not the content of thrown exception.
Also I can't modify library js files in order to add more verbose output because app.asar seems not to be a valid asar file:
CocosCreator 1.3.3 for MacOS
The text was updated successfully, but these errors were encountered: