breautek opened a new issue #834:
URL: https://github.com/apache/cordova-lib/issues/834


   # Bug Report
   
   ## Problem
   `cordova platform add android` produces a warning
   
   ### What is expected to happen?
   No warnings produced
   
   
   ### What does actually happen?
   ```
   (node:11565) Warning: Accessing non-existent property 'android' of module 
exports inside circular dependency
   (Use `node --trace-warnings ...` to show where the warning was created)
   ```
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   NodeJS 14
   Ubuntu 18
   Cordova 9/ [email protected]
   
   `node --trace-warnings` produces:
   
   ```
   (node:11647) Warning: Accessing non-existent property 'android' of module 
exports inside circular dependency
       at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
       at Object.get (internal/modules/cjs/loader.js:831:5)
       at Object.hostSupports 
(/home/norman/.nvm/versions/node/v14.2.0/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js:83:22)
       at addHelper 
(/home/norman/.nvm/versions/node/v14.2.0/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/platform/addHelper.js:47:27)
       at Function.add 
(/home/norman/.nvm/versions/node/v14.2.0/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/platform/index.js:27:12)
       at 
/home/norman/.nvm/versions/node/v14.2.0/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/platform/index.js:71:35
   ```
   Low priority as it is just a warning, and the command still appears to work. 
But I think we should still look into why the warning is being produced to 
begin with.
   
   This only occurs on the NodeJS 14.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   `cordova platform add android` on a newly created project.
   
   
   ## 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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to