Trying to build android package for a simple ionic2 project gives me this error. I am not using anything related to cordova yet.
An Error occurred trying to fall back to Cordova-lib execution: TypeError: Cannot read property 'then' of undefined
at Object.IonicTask.runCordova (C:\Users\bizhaa2\npm\node_modules\ionic\lib\ionic\cordova.js:296:21)
at C:\Users\bizhaa2\npm\node_modules\ionic\lib\ionic\cordova.js:162:19
at _fulfilled (C:\Users\bizhaa2\npm\node_modules\ionic\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\bizhaa2\npm\node_modules\ionic\node_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\Users\bizhaa2\npm\node_modules\ionic\node_modules\q\q.js:749:13)
at C:\Users\bizhaa2\npm\node_modules\ionic\node_modules\q\q.js:557:44
at flush (C:\Users\bizhaa2\npm\node_modules\ionic\node_modules\q\q.js:108:17)
at doNTCallback0 (node.js:419:9)
at process._tickCallback (node.js:348:13)
Error happened [TypeError: Cannot read property 'then' of undefined]
TypeError: Cannot read property 'then' of undefined
at Object.IonicTask.runCordova (C:\Users\bizhaa2\npm\node_modules\ionic\lib\ionic\cordova.js:296:21)
at C:\Users\bizhaa2\npm\node_modules\ionic\lib\ionic\cordova.js:162:19
at _fulfilled (C:\Users\bizhaa2\npm\node_modules\ionic\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\bizhaa2\npm\node_modules\ionic\node_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\Users\bizhaa2\npm\node_modules\ionic\node_modules\q\q.js:749:13)
at C:\Users\bizhaa2\npm\node_modules\ionic\node_modules\q\q.js:557:44
at flush (C:\Users\bizhaa2\npm\node_modules\ionic\node_modules\q\q.js:108:17)
at doNTCallback0 (node.js:419:9)
at process._tickCallback (node.js:348:13)