Closed mabreu14 closed 3 years ago
Phonegap is not a supported CLI. Adobe has ended the life of phonegap. Use the cordova
cli instead.
e.g:
npm install cordova -g
cordova platform add android
already tried it and got the same error
same error but from a different place cordova/node_modules/queue-microtask/index.js:5 ? queueMicrotask.bind(globalThis)
Bug Report
Problem
What is expected to happen?
android platform should be added
What does actually happen?
error Unable to load PlatformApi from platform. ReferenceError: globalThis is not defined
Information
Error happens with version cordova-android@9.0.0 If I downgrade to 8 it works
Command or Code
phonegap platform add android
Environment, Platform, Device
Version information
current dependencies "babel-core": "^6.3.26", "babel-plugin-transform-object-rest-spread": "^6.8.0", "babel-polyfill": "^6.3.14", "bluebird": "^2.9.33", "classnames": "^2.1.3", "cordova": "^8.0.0", "cordova-android": "9.0.0", "cordova-ios": "5.1.1", "cordova-plugin-app-icon-changer": "1.0.0", "cordova-plugin-calendar": "5.1.5", "cordova-plugin-device": "2.0.2", "cordova-plugin-dialogs": "2.0.1", "cordova-plugin-enable-multidex": "0.1.3", "cordova-plugin-file": "6.0.1", "cordova-plugin-file-transfer": "1.7.1", "cordova-plugin-geolocation": "3.0.0", "cordova-plugin-inappbrowser": "3.2.0", "cordova-plugin-network-information": "2.0.1", "cordova-plugin-passbook": "0.2.1", "cordova-plugin-safariviewcontroller": "1.6.0", "cordova-plugin-splashscreen": "5.0.2", "cordova-plugin-vibration": "3.1.0", "cordova-plugin-whitelist": "^1.3.3", "cordova-support-google-services": "^1.1.0", "cordova-plugin-screen-orientation": "3.0.2", "currency.js": "^0.4.4", "fastclick": "^1.0.6", "geolib": "^2.0.17", "glob": "^6.0.1", "hammerjs": "^2.0.4", "jquery": "^2.1.4", "jsbarcode": "^3.11.0", "lodash.groupby": "^3.1.1", "lodash.isequal": "^4.2.0", "merge-stream": "^1.0.0", "moment": "^2.10.3", "mx-ui": "git+ssh://git@bitbucket.org/daxko/mx-ui.git", "node-uuid": "^1.4.7", "node-version-compare": "^1.0.2", "phonegap": "^8.0.0", "phonegap-plugin-barcodescanner": "8.0.0", "plist": "^1.2.0", "react": "^15.2.1", "react-addons-css-transition-group": "^15.2.1", "react-addons-shallow-compare": "^15.2.1", "react-auto-text": "^1.0.0", "react-dom": "^15.2.1", "react-router": "^2.7.0", "react-svg": "^7.2.6", "rewire": "^2.3.4", "seed-random": "^2.2.0", "universal-ga": "^1.0.0"
Checklist