You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/23 20:29:22 UTC

[GitHub] brodybits commented on issue #65: Cordova requirements crash with "Cannot read property 'forEach' of undefined"

brodybits commented on issue #65: Cordova requirements crash with "Cannot read property 'forEach' of undefined"
URL: https://github.com/apache/cordova-browser/issues/65#issuecomment-441314075
 
 
   > https://github.com/caipivara/test-cordova-browser-failure
   
   I see the bug with Cordova CLI 8.1.2.
   
   If I try with cordova@nightly (nightly build from `master` branch of cordova-cli) I see the following:
   ```
   this.isCordova is not a function
   TypeError: this.isCordova is not a function
       at preProcessOptions (/Users/brodybits/.nvs/node/11.2.0/x64/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js:292:28)
       at Promise.resolve.then (/Users/brodybits/.nvs/node/11.2.0/x64/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/requirements.js:36:37)
       at process._tickCallback (internal/process/next_tick.js:43:7)
       at Function.Module.runMain (internal/modules/cjs/loader.js:778:11)
       at startup (internal/bootstrap/node.js:300:19)
       at bootstrapNodeJSCore (internal/bootstrap/node.js:826:3)
   ```
   
   (I use <https://github.com/jasongin/nvs> to switch between Node.js versions, with cordova@nightly installed with Node.js 11.)
   
   @caipivara I highly recommend you do not commit `node_modules`, `plugins`, or `platforms` unless absolutely necessary. Each developer on a Cordova project can regenerate using `cordova prepare`.
   
   Thanks for reporting.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

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