ionic-framework - 在 VS2013/multi-device-hybrid-apps 下运行时出现 ionic 错误

标签 ionic-framework ripple visual-studio-cordova

我在将 Ionic 与 VS2013 的新多设备混合应用功能一起使用时遇到问题。

当我使用 Ripple(在 Visual Studio 中按 F5)启动应用程序时,我看到错误:

Keyboard.hideKeyboardAccessoryBar

We seem to be missing some stuff :(

一些背景信息...

我使用命令行中的 ionic start myApp Blank 创建了 Ionic 应用程序,该命令将 index.html 以及其他文件放入 www 中 子文件夹 - config.xml 文件放置在 www 的父文件夹中。然后我创建了一个新的vs项目,使用js codova模板。 sln 和 jsproj 文件位于 myApp 文件夹中。我添加了保留 Ionic 文件夹结构的文件。

enter image description here

我注意到从命令行运行ripple并从www路径启动它不会显示错误。

cd .../myApp
ripple emulate --path www

但这确实

cd .../myApp
ripple emulate --path .

关于在 Visual Studio 中设置项目但保留 ionic 文件夹结构的任何建议都会有所帮助。谢谢。

最佳答案

多设备混合应用当前不支持您尝试使用的项目结构。

作为解决方法,您可以将内容从/www 移出并移至 VS 项目的根目录中。在构建时,文件将在幕后放回到/www 中,并且事情应该按预期工作。

关于ionic-framework - 在 VS2013/multi-device-hybrid-apps 下运行时出现 ionic 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24433557/

相关文章:

ios - 没有团队选择使用 VS Cordova 工具进行 iOS 构建

windows - 如何说服 Visual Studio 通过 TCP/IP 使用 ADB for android dev

python - 如何从 HTTP 响应接收 zip 文件

android - Ionic Cordova Android : No usable Android build tools found. 最高 30.x 安装版本为 30.0.2;所需的最低版本是 30.0.3

javascript - Ionic Angular.js $http 模块无法获取数据

angularjs - 从 AngularJs/Cordova 发布时 unable_to_verify_leaf_signature

Android 波纹按钮不起作用

cordova - 如何检测我的应用程序是否在 Ripple Emulator 上运行?

google-maps - Ionic 3 Google map - map 不显示在 android 上

cordova - 使用 Cordova 工具的 Visual Studio 的 node.js 版本是什么?