Ionic SyntaxError: Unexpected token A in JSON at position 0

I get this error after running ionic

on command line and the problem persists until I uninstall ~/.ionic/config.json

, but after a while it starts displaying this error message again. how do I really get rid of this? (Windows 10 user)

this is the content of config.json:

{
  "lastCommand": "2017-06-21T14:57:29.860Z",
  "urls": {
    "api": "https://api.ionic.io",
    "dash": "https://apps.ionic.io"
  },
  "user": {},
  "tokens": {
    "appUser": {},
    "telemetry": "501f31d8-48d1-4cd0-9919-68ccb7b1e30a"
  },
  "cliFlags": {
    "confirm": false,
    "interactive": true,
    "telemetry": true,
    "yarn": false
  }
}

      

I figured out that on every run ionic

it only changes "lastCommand"

and in general I tracked it through git

and reverted back to the last working config file which didn't help.

ionic.config.json content:

{
  "name": "restaurant",
  "app_id": "",
  "type": "ionic-angular"
}

      

+3


source to share





All Articles