Ionic 3 Project does not have config.xml

Viewed 14982

I was trying to follow this tutorial: https://www.youtube.com/watch?v=SOOjamH1bAA. But I couldn't even begin, because from what it looks like, my project does not have a config.xml file and I tried looking up the documentation online, and it says nothing about it, I also tried searching how to generate it, didn't find anything, why am I missing this config.xml? how to generate this file? Here's a link to display where its supposed to be, and it's not there:

enter image description here

heres the ionic info output:

Ionic: ionic (Ionic CLI) : 4.1.1 (C:\Users\Publio\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.11 System: NodeJS : v8.11.3 (C:\Program Files\nodejs\node.exe) npm : 6.3.0 OS : Windows 10
3 Answers

From ionic cli v4, you need to set cordova to your ionic app if you are creating an ionic cordova application. config.xml is used by cordova platform.

You can enable the integration after creating the app as well according to documentation.

ionic integrations enable cordova

If you cannot recover or don't have a config.xml file here is a solution I found from, just run ionic integrations enable cordova --add and if it asks to overwrite config.xml, give yes and if it asks to overwrite resources, give no because it will overwrite your resources folder and you will lose many important things

create new project and copy config.xml file and create a new file with name config.xml and paste in it

Related