Unable to load PlatformApi

#1

Bitrise Build Issue Report template

Description of the issue

Unable to build Cordova project on ios / android.

Environment:

Bitrise X-code 11.7.x stack

Error in step 6.

Building project
$ cordova “compile” “–release” “–emulator” “ios” “android” “–buildConfig” “/var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/__bitrise-cordova-build-config__605635566/build.json” “–buildFlag=-UseModernBuildSystem=0”
Unable to load PlatformApi from platform. Error: Cannot find module ‘unorm’
Require stack:

  • /Users/vagrant/git/platforms/ios/cordova/Api.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/plugman.js
  • /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/cordova-lib.js
  • /usr/local/lib/node_modules/cordova/src/help.js
  • /usr/local/lib/node_modules/cordova/src/cli.js
  • /usr/local/lib/node_modules/cordova/bin/cordova
    Unhandled error. (‘The platform “ios” does not appear to be a valid cordova platform. It is missing API.js. ios not supported.’)
    No ios nor android platform’s output dir exist
    No output generated

Reproducibility

  • Does a “Rebuild” help?: NO
  • Does a rebuild without caches help? : NO
  • Does the issue happen sporadically, or every time?_ : Every Time
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : From day one.

Local reproduction

Unable to reproduce locally.

Local reproduction: Linux / Android (docker based) stack builds

Unable to reproduce locally.

Build log

0 Likes

#2

Hi,

Thank you for reaching out to Bitrise!

Could you please enable support access on the Settings tab of the app?

Thanks so much!

0 Likes

closed #3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes