【问题标题】:Ionic 6 cordova platform problem with angular 14角度14的离子6科尔多瓦平台问题
【发布时间】:2022-07-10 00:29:23
【问题描述】:

我在浏览器上运行应用程序时遇到错误。

ionic cordova run browser

错误是

Error: Unknown argument: platform [ERROR] An error occurred while running subprocess ng.   ng.cmd run app:ionic-cordova-build --platform=browser exited with exit code 1. Re-running this command with the --verbose flag may provide more information.

我的配置

离子:

离子 CLI:6.13.1 离子框架:@ionic/angular 6.1.13 @angular-devkit/build-angular:14.0.5 @angular-devkit/原理图:14.0.5 @角/cli:14.0.5 @ionic/angular-toolkit:6.1.0

科尔多瓦:

科尔多瓦 CLI:11.0.0 Cordova 平台:浏览器 6.0.0 Cordova 插件:cordova-plugin-ionic-keyboard 2.2.0、cordova-plugin-ionic-webview 5.0.0(和其他 4 个插件)

实用程序:

cordova 分辨率:0.15.4 本机运行:1.6.0

系统:

Android SDK 工具:26.1.1 节点JS:v16.16.0 npm:8.2.0 操作系统:Windows 10

【问题讨论】:

    标签: cordova ionic-framework


    【解决方案1】:

    我找到了我所缺少的解决方案

    ng add @ionic/cordova-builders
    

    它是使用 Cordova 的 @ionic/angular 项目的构建器集合。

    此解决方案也适用于 androidios

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-02-27
      • 1970-01-01
      • 2022-08-19
      • 1970-01-01
      • 2019-06-03
      • 2016-08-30
      • 1970-01-01
      相关资源
      最近更新 更多