Project suddenly stopped working

Hi all,

I wanted to add some pages to my app today and after that i tried serving my app. Now i get this error on using ionic serve:

Uh oh! There’s a syntax error in your ionic.config.json file:
SyntaxError: Unexpected token } in JSON at position 249

I tried several things, i tried reverting my changes without succes. I tried reverting my changes and serving the app on my laptop, where i finished working on the project yesterday but i get the same error…

Tried uninstalling Cordova & Ionic, and did npm install but all had no effect…

Anyone able to point me into the right direction here?

ionic.config.json:

{
“name”: “SomeName”,
“app_id”: “”,
“v2”: true,
“typescript”: true,
“proxies”: [
{
“path”: “/api”,
“proxyUrl”: “https://example.com:8443/tracercrm/”,
“rejectUnauthorized”: false,
}
]
}

try to remove the comma after

“rejectUnauthorized”: false,

2 Likes

Thanks this fixed my issue!

1 Like