Page 1 of 1

Uncaught SyntaxError: Unexpected token :

Posted: Wed Jun 17, 2015 3:16 pm
by Marco Spera

I am receiving an error that I cannot solve.

I receive the "Uncaught SyntaxError: Unexpected token :" when I try and move to the "ViewAllPicks" page.

I have shared my app with appery support. It is titled 17weeks.

You can login with username "test" and password "test" and try and click the "view all picks" button in the bottom right corner of the nav bar. It seems to not navigate to the new page.

It has been working fine. But I went and made some js changes to my mapping and now does not work. I have removed all my js mapping changes I made and went back to the original, but I am still stuck.

Please help.

thanks


Uncaught SyntaxError: Unexpected token :

Posted: Wed Jun 17, 2015 4:21 pm
by Serhii Kulibaba

Hello Marco,

Please check line with an error. It looks like use use ":" in incorrect place


Uncaught SyntaxError: Unexpected token :

Posted: Wed Jun 17, 2015 4:23 pm
by Marco Spera

Thanks for the update Sergiy.

I was trying to find the line but I do not know exactly how.

Can you explain the process to find the line causing the problem?


Uncaught SyntaxError: Unexpected token :

Posted: Wed Jun 17, 2015 5:37 pm
by Alena Prykhodko

Marco,

You can find this in console https://devcenter.appery.io/documenta...


Uncaught SyntaxError: Unexpected token :

Posted: Wed Jun 17, 2015 6:09 pm
by Marco Spera

Hi Alena,

I do see the error in the console, but I still cannot figure out how I can locate what line of my code or js is causing this.

The attached screenshot is the error I am getting.
Sergiy mentioned that there was a ":" possibly used incorrectly.

How could I find where exactly this ":" is?

Thanks

Image


Uncaught SyntaxError: Unexpected token :

Posted: Thu Jun 18, 2015 12:50 pm
by Marco Spera

When I click on the error message, it takes me to this part of the code in the screenshot below.

I am not exactly sure what this is, or if this is even where my error is.

Please help, Thanks!

Image


Uncaught SyntaxError: Unexpected token :

Posted: Thu Jun 18, 2015 6:53 pm
by Serhii Kulibaba

Marco, please check you JS and Call stack. It is not a jQuery problem. It is yours. If you can't find it, please provide us with a public app link (http://devcenter.appery.io/documentat...) and steps to reproduce.


Uncaught SyntaxError: Unexpected token :

Posted: Thu Jun 18, 2015 7:06 pm
by Marco Spera

Alright thanks Sergiy.