Can't emulate or build after cordova update

Using latest version of cordova and Ionic, I started to get the following error using emulate:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
terminating with uncaught exception of type NSException

any idea?