When running edison-cli listI get TypeError: Cannot call method 'some' of undefined error.
> edison-cli list
/usr/local/lib/node_modules/edison-cli/lib/find.js:24
return data.type.some(function(type){
^
TypeError: Cannot call method 'some' of undefined
at filter (/usr/local/lib/node_modules/edison-cli/lib/find.js:24:22)
at null.<anonymous> (/usr/local/lib/node_modules/edison-cli/lib/find.js:30:9)
at EventEmitter.emit (events.js:95:17)
at internal.onMessage (/usr/local/lib/node_modules/edison-cli/node_modules/mdns-js/lib/browser.js:51:8)
at null.<anonymous> (/usr/local/lib/node_modules/edison-cli/node_modules/mdns-js/lib/browser.js:132:26)
at Socket.EventEmitter.emit (events.js:98:17)
at UDP.onMessage (dgram.js:440:8)
After adding a console.log on the data being passed into filter(data), I see that some data objects do not have type objects. Confer with logs below.
When running
edison-cli list
I getTypeError: Cannot call method 'some' of undefined
error.After adding a
console.log
on the data being passed intofilter(data)
, I see that some data objects do not have type objects. Confer with logs below.The first data has a
type
element and runs fine.The second data does NOT have a
type
element and causes the error.