You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/02/15 20:42:26 UTC

[GitHub] [cordova-android] mabreu14 opened a new issue #1162: cordova platform add android not working for 9.0.0.0 version

mabreu14 opened a new issue #1162:
URL: https://github.com/apache/cordova-android/issues/1162


   # Bug Report
   
   ## Problem
   * command 'cordova platform add android' is not working 
   * The issue started happening after Feb 03 2021
   * Its falling trying to get platform API on line https://github.com/apache/cordova-lib/blob/master/src/cordova/util.js#L59 when pkgJsonPath is node_modules/cordova-android/bin/templates/cordova/Api.js
   
   ### 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
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x ] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x ] I included all the necessary information above


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek edited a comment on issue #1162: cordova platform add android not working for 9.0.0.0 version

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #1162:
URL: https://github.com/apache/cordova-android/issues/1162#issuecomment-779464664


   We support Node ~12+~ 10+ LTS versions.
   
   Non-LTS versions are not supported. Recommended version to use is the latest release of Node 14, but if something prevents you from upgrading to Node 14, then the latest minor/patch release of Node 12 or Node 10 should work as well.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #1162: cordova platform add android not working for 9.0.0.0 version

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1162:
URL: https://github.com/apache/cordova-android/issues/1162#issuecomment-779441618


   > "cordova": "^8.0.0",
   
   Can you try version 10?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] mabreu14 commented on issue #1162: cordova platform add android not working for 9.0.0.0 version

Posted by GitBox <gi...@apache.org>.
mabreu14 commented on issue #1162:
URL: https://github.com/apache/cordova-android/issues/1162#issuecomment-779491457


   downgrading to v10 sold the issue 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #1162: cordova platform add android not working for 9.0.0.0 version

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1162:
URL: https://github.com/apache/cordova-android/issues/1162#issuecomment-779464664


   We support Node 12+ LTS versions.
   
   Non-LTS versions are not supported (although will probably still work). Recommended version to use is the latest release of Node 14.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] mabreu14 commented on issue #1162: cordova platform add android not working for 9.0.0.0 version

Posted by GitBox <gi...@apache.org>.
mabreu14 commented on issue #1162:
URL: https://github.com/apache/cordova-android/issues/1162#issuecomment-779456397


   I updated to 10 and got the same error but from a different line 
   ReferenceError: globalThis is not defined
   cordova/node_modules/queue-microtask/index.js:5
   ? queueMicrotask.bind(globalThis)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek edited a comment on issue #1162: cordova platform add android not working for 9.0.0.0 version

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #1162:
URL: https://github.com/apache/cordova-android/issues/1162#issuecomment-779464664


   We support Node ~12+~ 10+ LTS versions.
   
   Non-LTS versions are not supported. (Every odd version for Node is a non-LTS version) Recommended version to use is the latest release of Node 14, but if something prevents you from upgrading to Node 14, then the latest minor/patch release of Node 12 or Node 10 should work as well.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] mabreu14 commented on issue #1162: cordova platform add android not working for 9.0.0.0 version

Posted by GitBox <gi...@apache.org>.
mabreu14 commented on issue #1162:
URL: https://github.com/apache/cordova-android/issues/1162#issuecomment-779463680


   11.10


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] dpogue commented on issue #1162: cordova platform add android not working for 9.0.0.0 version

Posted by GitBox <gi...@apache.org>.
dpogue commented on issue #1162:
URL: https://github.com/apache/cordova-android/issues/1162#issuecomment-779456973


   What version of nodeJS do you have installed? `node -v` should tell you


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] mabreu14 closed issue #1162: cordova platform add android not working for 9.0.0.0 version

Posted by GitBox <gi...@apache.org>.
mabreu14 closed issue #1162:
URL: https://github.com/apache/cordova-android/issues/1162


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org