Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Master
-
Tried on Windows and Mac
6.1.1-dev (cordova-lib@6.1.1-dev)
Description
Ran into this issue when trying to create mobile-spec. I cannot add the android platform from a path. This only happens on master. If I switch cordova-android repo to 5.1.x branch, this issue doesn't happen.
Error from Mac:
myComputer$ cordova platform add ../cordova-android -dd Executing "before_platform_add" hook for all plugins. Adding android project... PlatformApi successfully found for platform android /Users/myComputer/cordova_apache_master/cordova-cli/node_modules/cordova-common/src/CordovaLogger.js:212 if(message.toUpperCase().indexOf('ERROR:') !== 0) { ^ TypeError: Cannot call method 'toUpperCase' of undefined at formatError (/Users/myComputer/cordova_apache_master/cordova-cli/node_modules/cordova-common/src/CordovaLogger.js:212:16) at CordovaLogger.log (/Users/myComputer/cordova_apache_master/cordova-cli/node_modules/cordova-common/src/CordovaLogger.js:93:19) at process.<anonymous> (/Users/myComputer/cordova_apache_master/cordova-cli/src/cli.js:136:16) at process.EventEmitter.emit (events.js:95:17) at process._fatalException (node.js:272:26)
Error from Windows:
Error: RangeError: Maximum call stack size exceeded at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo va-lib\cordova-common\src\events.js:61:30) at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo va-lib\cordova-common\src\events.js:61:30) at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo va-lib\cordova-common\src\events.js:61:30) at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo va-lib\cordova-common\src\events.js:61:30) at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo va-lib\cordova-common\src\events.js:61:30) at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo va-lib\cordova-common\src\events.js:61:30) at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo va-lib\cordova-common\src\events.js:61:30) at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo va-lib\cordova-common\src\events.js:61:30) at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo va-lib\cordova-common\src\events.js:61:30) at EventEmitter.module.exports.emit (C:\Users\myComputer\cordova_master\cordo va-lib\cordova-common\src\events.js:61:30)
Attachments
Issue Links
- duplicates
-
CB-11051 Mobilespec setup failure
- Closed