Home > Software engineering >  Ionic Capacitor no capacitor.config.json but instead capacitor.config.ts
Ionic Capacitor no capacitor.config.json but instead capacitor.config.ts

Time:12-09

I created an Angular/Ionic project with capacitor. Now I wanted to make changes in my capacitor.config.json but this file is missing? Instead there is the capacitor.config.ts?! I need the JSON File because otherwise a plugin doesnt work! Which version of Ionic/Angular/Capacitor should I use for this? Here are pictures of my directory and my package.json: Directory and Files

package.json file

CodePudding user response:

The version I'm using has the file you require. application files ionic version

Please try out ionic 6.18.1 version if possible.

CodePudding user response:

Capacitor 3 allows to have .json, .js or .ts config file.

npx cap init command will create a .ts file if typescript is installed If you don’t want a .ts file you can just remove it and create a .json file, but everything should still work no matter what the config file extension is.

  • Related