微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

带电容器的Appflow在构建中检测到Cordova

如何解决带电容器的Appflow在构建中检测到Cordova

我最近在我的Vue-nuxt项目中添加了电容器,我没有使用Cordova,而是在appflow项目中启用了电容器。但是,当我尝试构建时,它总是会引发错误,因为appflow会将其检测为Cordova项目并试图寻找“ www” webDir,但我并未在代码中的任何位置进行配置……我在我的仓库和仓库中使用了工作区项目位于/package/下,ionic.config.json位于/package/myApp下。我想这是否是无法正确获取配置的原因?我还尝试使用多项目的配置显式添加应用程序的位置

{
  "defaultProject": "myApp","projects": {
    "myApp": {
      "name": "my-app","integrations": {
        "capacitor":{}
      },"type": "custom","root": "packages/my-app
    }
  }
}

这是我得到的错误

cloning into '/builds/account-name/repo-name'...
cloning repository...
Checking out 25d87ac4 as commit-msg...
Updating/initializing submodules...
$ run "fetch-updates"
$ run "build-app"
[20:58:16]: ------------------------------
[20:58:16]: --- Step: default_platform ---
[20:58:16]: ------------------------------
[20:58:16]: Driving the lane 'android deploy_build' ?
[20:58:18]: ---------------------------
[20:58:18]: --- Step: build_summary ---
[20:58:18]: ---------------------------

+---------------------+---------------------------+
|                  Build Summary                  |
+---------------------+---------------------------+
| Job ID              | 6974319                   |
| Node.js version     | v12.17.0                  |
| Cordova CLI version | 9.0.3 (cordova-lib@9.0.2) |
| npm version         | 6.14.4                    |
+---------------------+---------------------------+

[20:58:18]: ---------------------------------
[20:58:18]: --- Step: add_git_credentials ---
[20:58:18]: ---------------------------------
[20:58:18]: Writing git-credentials files
[20:58:18]: git-credentials successfully added to project
[20:58:18]: --------------------------------
[20:58:18]: --- Step: detect_native_type ---
[20:58:18]: --------------------------------
[20:58:18]: Checking if cordova or capacitor project
[20:58:18]: Cordova project detected
[20:58:18]: -------------------------
[20:58:18]: --- Step: get_web_dir ---
[20:58:18]: -------------------------
[20:58:18]: webDir is `www`
[20:58:18]: -------------------------------
[20:58:18]: --- Step: modify_config_xml ---
[20:58:18]: -------------------------------
[20:58:18]: No custom native config detected.
[20:58:18]: ---------------------------
[20:58:18]: --- Step: build_pro_app ---
[20:58:18]: ---------------------------
[20:58:18]: Installing Dependencies
[20:58:18]: $ npm install --quiet --no-optional
[20:58:23]: ▸ npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[20:58:24]: ▸ npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
[20:58:24]: ▸ npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
[20:58:24]: ▸ npm WARN deprecated request@2.88.2: request has been deprecated,see https://github.com/request/request/issues/3142
[20:58:24]: ▸ npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the Now deprecated request package,see https://github.com/request/request/issues/3142
[20:58:25]: ▸ npm WARN deprecated har-validator@5.1.5: this library is no longer supported
[20:58:26]: ▸ npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and Could be using insecure binaries. Upgrade to fsevents 2.
[20:58:51]: ▸ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/jest-haste-map/node_modules/fsevents):
[20:58:51]: ▸ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
[20:58:51]: ▸ npm WARN @vue/test-utils@1.0.4 requires a peer of vue@2.x but none is installed. You must install peer dependencies yourself.
[20:58:51]: ▸ npm WARN @vue/test-utils@1.0.4 requires a peer of vue-template-compiler@^2.x but none is installed. You must install peer dependencies yourself.
[20:58:51]: ▸ npm WARN vue-jest@4.0.0-beta.5 requires a peer of jest@^25.x but none is installed. You must install peer dependencies yourself.
[20:58:51]: ▸ npm WARN vue-jest@4.0.0-beta.5 requires a peer of vue@^2.x but none is installed. You must install peer dependencies yourself.
[20:58:51]: ▸ npm WARN vue-jest@4.0.0-beta.5 requires a peer of vue-template-compiler@^2.x but none is installed. You must install peer dependencies yourself.
[20:58:51]: ▸ npm WARN ts-jest@25.5.1 requires a peer of jest@>=25 <26 but none is installed. You must install peer dependencies yourself.
[20:58:51]: ▸ npm WARN ts-jest@25.5.1 requires a peer of typescript@>=3.4 <4.0 but none is installed. You must install peer dependencies yourself.
[20:58:51]: ▸ added 618 packages from 466 contributors and audited 621 packages in 33.069s
[20:58:52]: ▸ 29 packages are looking for funding
[20:58:52]: ▸ run `npm fund` for details
/usr/local/bundle/bin/fastlane: [!] No www found in root of project. (RuntimeError)

任何想法和建议将不胜感激!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。