【问题标题】:Oracle Jet: Unable to make hybrid app with Ojet cli 9.1Oracle Jet:无法使用 Ojet cli 9.1 制作混合应用程序
【发布时间】:2020-08-21 00:33:07
【问题描述】:

我正在尝试使用 ojet 和 ojet-cli 构建一个混合应用程序。我指的是ojet官方网站上的入门页面。

我可以使用 ojet-cli 成功构建 web 应用程序并为其提供服务,但是当我输入命令 ojet add hybrid 时,我收到以下错误

   {
  code: 'ERR_INVALID_ARG_TYPE',
  message: '(during updateConfigXml) The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Document'
}

以下是我控制台的完整日志

~/Desktop/testApp                                                                                                               ⍉
▶ ojet add hybrid
? Please choose the platforms you want to install iOS
Adding platform: ios
Using cordova-fetch for cordova-ios@^6.1.0


Adding ios project...


Creating Cordova project for the iOS platform:
    Path: platforms/ios

    Package: org.oraclejet.testapp
    Name: testApp

iOS project created with cordova-ios@6.1.0

Discovered plugin "cordova-plugin-whitelist". Adding it to the project


Installing "cordova-plugin-whitelist" for ios

Adding cordova-plugin-whitelist to package.json


Adding platform: browser
Using cordova-fetch for cordova-browser@^6.0.0


Adding browser project...

Creating Cordova project for cordova-browser:
    Path: /Users/hellonuh/Desktop/testApp/hybrid/platforms/browser

    Name: testApp

Installing "cordova-plugin-whitelist" for browser

6.0.0

{
  code: 'ERR_INVALID_ARG_TYPE',
  message: '(during updateConfigXml) The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Document'
}

以下是我的环境详细信息

├── @oracle/ojet-cli@9.1.0
├── cordova@10.0.0
└── npm@6.14.8

▶ node -v
v14.5.0

【问题讨论】:

    标签: oracle-jet


    【解决方案1】:

    请将您的 Node 版本降到 LTS 版本,然后重试。当人们使用 Node 的“当前”版本时,我们总是会看到问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-04
      • 1970-01-01
      相关资源
      最近更新 更多