Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

Unrecoverable Syntax Error

Hi there,

I am getting the below error on my js code:

Warning: Uglification failed.
Unexpected token punc «;», expected punc «,».

Here is the code below:

window.powerManagement.dim(function() {
console.log('Wakelock acquired');
}, function() {
console.log('Failed to acquire wakelock');
});
window.powerManagement.setReleaseOnPause(false, function() {
console.log('setReleaseOnPause successfully');
}, function() {
console.log('Failed to set');
});

Please help me correct the syntax?

Thanks

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Unrecoverable Syntax Error

Hello,

Please clarify, where and when do you get that warning, on the browser test, or on the real mobile device?

Could you please provide us with more details, screenshots or exact steps to reproduce this problem?

Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

Unrecoverable Syntax Error

Hi there,

I have got the error on the JS event as shown in pic below

Image

and the other one when I am exporting the .apk file it wont let me export and gives this error.

Image

Please help me fix this error its urgent.

Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

Unrecoverable Syntax Error

Waiting for response on this one..??

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Unrecoverable Syntax Error

Could you send us a screenshot of the page startScreen.js from the WEB_RESOURCES tab with a line 408?

Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

Unrecoverable Syntax Error

Resolved this myself. Thanks :)

roh
Posts: 0
Joined: Sat Feb 14, 2015 12:07 am

Unrecoverable Syntax Error

@tooba what was the resolution, i'm encountering the same issue

Joni de Campos
Posts: 0
Joined: Fri Dec 11, 2015 12:21 pm

Unrecoverable Syntax Error

HI ...i had the same problem...in my case i was using "let"to define a variable,which gave the error...changed to "var"and the problem was solved...

Return to “Issues”