Page 1 of 1

Error on Android but not on web?

Posted: Sat Apr 12, 2025 10:27 am
by Caronte3D
The project I've been working on for a while now suddenly refuses to work on an Android device.
The app stays on the splash screen, and if I look at chrome://inspect/#devices, I see the error:

Code: Select all

C:\Users\Usuario\Documents\SpiderBasic\xxx\mycode.sb:1 error: Uncaught SyntaxError: Unexpected end of input (https://localhost/spiderbasic.js?t=1744449395, line: 15211)
This error could be due to several things, such as a missing par(), {}, or [], but I actually checked a backup and the problem persists. :shock:
The code works without errors in the IDE and the web browser.
Any ideas? :cry:

EDIT: The line in the error message is the last one, so not help to much.

Re: Error on Android but not on web?

Posted: Sat Apr 12, 2025 11:00 am
by Caronte3D
Oops! My backup was too recent. :oops:
I found the culprit: a missing "}."
It's funny how the code worked in both the IDE and the web. :shock:

Re: Error on Android but not on web?

Posted: Sat Apr 12, 2025 1:53 pm
by Quin
Caronte3D wrote: Sat Apr 12, 2025 11:00 am Oops! My backup was too recent. :oops:
I found the culprit: a missing "}."
It's funny how the code worked in both the IDE and the web. :shock:
JavaScript can be a devil sometimes, an angel others.
Glad you found the bug!