Marco Spera
Posts: 0
Joined: Tue Jun 17, 2014 7:14 pm

Uncaught SyntaxError: Unexpected token :

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

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

Uncaught SyntaxError: Unexpected token :

Hello Marco,

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

Marco Spera
Posts: 0
Joined: Tue Jun 17, 2014 7:14 pm

Uncaught SyntaxError: Unexpected token :

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?

Marco Spera
Posts: 0
Joined: Tue Jun 17, 2014 7:14 pm

Uncaught SyntaxError: Unexpected token :

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

Marco Spera
Posts: 0
Joined: Tue Jun 17, 2014 7:14 pm

Uncaught SyntaxError: Unexpected token :

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

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

Uncaught SyntaxError: Unexpected token :

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.

Marco Spera
Posts: 0
Joined: Tue Jun 17, 2014 7:14 pm

Uncaught SyntaxError: Unexpected token :

Alright thanks Sergiy.

Return to “Issues”