Syntax error in line 187, but can't find one Pi 4?

Good evening everyone,

I wanted to install grid apps on the Pi 4. Everything is installed so far. NPM and NodeJS are up to date, as Node 13 is required.

I get the following error message when I try to start the app:

 230825.195616 '[appserver]' 'invalid app.json for apps/grid' SyntaxError: Unexpected token ] in JSON at position 187    at JSON.parse (<anonymous>)    at /home/pi/grid-apps/app.js:592:32    at Array.forEach (<anonymous>)    at /home/pi/grid-apps/app.js:591:43    at Array.forEach (<anonymous>)    at generateDevices (/home/pi/grid-apps/app.js:589:26)    at prepareScripts (/home/pi/grid-apps/app.js:600:5)    at init (/home/pi/grid-apps/app.js:281:5)    at updateApp (/usr/lib/node_modules/@gridspace/app-server/app-server.js:291:9)    at /usr/lib/node_modules/@gridspace/app-server/app-server.js:234:13 230825.195616 '[appserver]' 'app-server running: ports=[8080] apps=[apps] data=[data] logs=[logs]'

Unfortunately, I cannot find the error in the following text where the error is supposed to be and in the other paths (see /usr/lib … etc.) because there is no "]" at this point: https://github.com/GridSpace/grid-apps/blob/master/app.js

I've already tried JavaScript validators, but everyone tells me something different. Maybe someone who knows about them can help me.

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
1 Answer
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
jo135
1 year ago

The syntax error refers to the app.json, not to app.js.