Issue
Getting below error
cannot read property 'name' of undefined
while building ionic app in mac
Solution
modify platform/ios/cordova/lib/list-emulator-build-targets:
change:
if (device.name === deviceType.name.replace(/\-inch/g, ' inch') &&
device.availability.toLowerCase().indexOf('unavailable') < 0) {
availAcc.push(device);
}
to:
if (device.name === deviceType.name.replace(/\-inch/g, ' inch')) {
if ((device.availability && device.availability.toLowerCase().indexOf('unavailable') < 0)
|| device.isAvailable) {
availAcc.push(device);
}
}
Answered By - Nick
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.