Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node index.js step returns syntax error #170

Open
Georgedude opened this issue Jan 20, 2024 · 1 comment
Open

node index.js step returns syntax error #170

Georgedude opened this issue Jan 20, 2024 · 1 comment

Comments

@Georgedude
Copy link

Georgedude commented Jan 20, 2024

george@debian:~/LD-ToyPad-Emulator$ node index.js
undefined:11
]5": 4026531839
^

SyntaxError: Unexpected number in JSON at position 208
at JSON.parse ()
at initalizeToyTagsJSON (/home/george/LD-ToyPad-Emulator/index.js:140:25)
at Object. (/home/george/LD-ToyPad-Emulator/index.js:27:1)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
at internal/main/run_main_module.js:21:11

Any ideas what I can do to solve this? I've had a look in the index.js file for the mentioned ]5" with ctrlF but no luck, but I'm also not knowledgeable on the topic so I'm sure I'm misunderstanding something

Edit 1: Of note, I couldn't find the loader.js file at all, is that unusual?

Edit 2: Fixed the issue but leaving up as others seem to have had similar issues; The problem was at server/json/toytags.json, when making a new toy tag it messed up writing it to this file and made the syntax go bad, I went into the file and removed the bad syntax and it's now running as normal

@casioforever
Copy link

I just Deleted The Whole Game, Worst Experience Ever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants