Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The config file (.\ionic.config.json) is not valid JSON format

Every time I run this command: ionic cordova build android --release

I am using cordova -v 7.0.1

I get this error:

The config file (.\ionic.config.json) is not valid JSON format.

Please fix any JSON errors in the file.

Here is my file:

{
  "app_id": "12345",
  "name": "myApp",
  "type": "ionic1"
}

I'm not sure what's going on here.

This command works fine: cordova build android --release

I am not sure what's going on with ionic.

like image 345
user1261710 Avatar asked Jun 15 '17 13:06

user1261710


1 Answers

Goto this path- C:/Users/{your_username}/.ionic find file ionic.config and delete it.

It will be auto-regenerated by the CLI.

like image 115
maninak Avatar answered Oct 22 '22 12:10

maninak