ionic-framework - ionic 错误 : Invalid attribute name

标签 ionic-framework

我正在尝试执行 ionic 命令。

ionic cordova platform add ios

它在终端上给我以下错误。

Error: Invalid attribute name Line: 12 Column: 35 Char: " at error (/Users/jacmacos2/Desktop/project/node_modules/sax/lib/sax.js:666:10) at strictFail (/Users/jacmacos2/Desktop/project/node_modules/sax/lib/sax.js:692:7) at Object.write (/Users/jacmacos2/Desktop/project/node_modules/sax/lib/sax.js:1330:13) at XMLParser.feed (/Users/jacmacos2/Desktop/project/node_modules/elementtree/lib/parsers/sax.js:48:15) at ElementTree.parse (/Users/jacmacos2/Desktop/project/node_modules/elementtree/lib/elementtree.js:271:10) at Object.parse (/Users/jacmacos2/Desktop/project/node_modules/elementtree/lib/elementtree.js:584:8) at Function.<anonymous> (/Users/jacmacos2/Desktop/project/node_modules/ionic/node_modules/@ionic/cli-utils/lib/cordova/config.js:29:28) at next (native) project

我不明白发生了什么。 如果有人遇到这个问题,请告诉我如何解决。 提前致谢。

最佳答案

我解决了。 我检查我的 config.xml 文件。 双引号已从那里删除。 我只是添加它并完成它然后问题就解决了。

关于ionic-framework - ionic 错误 : Invalid attribute name,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46357600/

相关文章:

android - 带有 ionic 的 Cordova Google-analytics-plugin 在 Android 中不起作用

javascript - ionic 混合移动应用程序获取设备位置

ionic-framework - 如何创建 ionic 视频聊天应用程序

javascript - 如何在 ng-if 中使用 {{}} 表达式

angularjs - 将youtube视频嵌入到iFrame中

angularjs - 使用单独的模板 html 文件从 ionic /Angular 模态传递数据

javascript - 如何让我的 Ionic Button 刷新所有 ionic View 。 (在大多数情况下最好只是重新评估一个 ng-switch)

AngularJS REST Api 选择框 ng-change

android - Ionic - 意外 token 仅在 Android 5 模拟器中运行时非法

css - 如何在 Ionic 中将图像同时放入 <ion-header> 和 <ion-content>