Page 1 of 1

Unrecoverable Syntax Error

Posted: Sun Sep 25, 2016 9:04 am
by Tooba Atif

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


Unrecoverable Syntax Error

Posted: Sun Sep 25, 2016 9:19 am
by Serhii Kulibaba

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?


Unrecoverable Syntax Error

Posted: Sun Sep 25, 2016 10:52 am
by Tooba Atif

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.


Unrecoverable Syntax Error

Posted: Mon Sep 26, 2016 3:11 pm
by Tooba Atif

Waiting for response on this one..??


Unrecoverable Syntax Error

Posted: Tue Sep 27, 2016 10:37 am
by Serhii Kulibaba

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


Unrecoverable Syntax Error

Posted: Tue Sep 27, 2016 2:38 pm
by Tooba Atif

Resolved this myself. Thanks :)


Unrecoverable Syntax Error

Posted: Sat May 04, 2019 6:52 pm
by roh

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


Unrecoverable Syntax Error

Posted: Mon Jun 10, 2019 3:06 pm
by Joni de Campos

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...