Ionic 3 Project does not have config.xml

假装没事ソ 提交于 2020-01-02 01:13:20

问题


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:

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

回答1:


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



回答2:


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



来源:https://stackoverflow.com/questions/52003114/ionic-3-project-does-not-have-config-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!