本文介绍了Ionic 3 项目没有 config.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图按照本教程进行操作:

这是离子信息输出:

Ionic: ionic (Ionic CLI) : 4.1.1 (C:UsersPublioAppDataRoaming
pm
ode_modulesionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts:3.1.11 系统:NodeJS:v8.11.3 (C:Program Files
odejs
ode.exe) npm:6.3.0 操作系统:Windows 10
解决方案

如果您要创建 ionic cordova 应用程序,则需要从 ionic cli v4 将 cordova 设置为您的 ionic 应用程序.config.xml 供cordova平台使用.

您也可以根据文档在创建应用后启用集成.

离子集成启用cordova

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:UsersPublioAppDataRoaming
pm
ode_modulesionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.11 System: NodeJS : v8.11.3 (C:Program Files
odejs
ode.exe) npm : 6.3.0 OS : Windows 10
解决方案

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

这篇关于Ionic 3 项目没有 config.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 14:19
查看更多