Error on Android but not on web?

Everything else that doesn't fall into one of the other categories.
User avatar
Caronte3D
Posts: 189
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Error on Android but not on web?

Post 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.
User avatar
Caronte3D
Posts: 189
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Re: Error on Android but not on web?

Post 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:
Quin
Posts: 118
Joined: Wed Nov 08, 2023 4:38 pm

Re: Error on Android but not on web?

Post 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!
Post Reply