You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error is due to the typeMatches array being empty and trying to access the inner array element that doesn't exist. Need to add check for any matches returned before trying to access the matches.
Image used E:\GitHub\mtg-card-analyzer\src\test-images\TranquilThicket.jpg
Needs to
Error
TypeError: this.matches.typeMatches[0] is not iterable
at SingleProcessor._processOutputFile (E:\GitHub\mtg-card-analyzer\src\processor\processor.js:159:60)
at SingleProcessor.wrapper [as _processOutputFile] (E:\GitHub\mtg-card-analyzer\node_modules\lodash\lodash.js:4935:19)
at SingleProcessor.generateOutput (E:\GitHub\mtg-card-analyzer\src\processor\processor.js:76:10)
at SingleProcessor.wrapper [as generateOutput] (E:\GitHub\mtg-card-analyzer\node_modules\lodash\lodash.js:4935:19)
at processor.execute (E:\GitHub\mtg-card-analyzer\index.js:28:39)
at _processCard (E:\GitHub\mtg-card-analyzer\src\processor\processor.js:46:16)
at CreateDirectory.then.then.then.then (E:\GitHub\mtg-card-analyzer\src\processor\processor.js:67:16)
The text was updated successfully, but these errors were encountered:
This error is due to the typeMatches array being empty and trying to access the inner array element that doesn't exist. Need to add check for any matches returned before trying to access the matches.
Image used
E:\GitHub\mtg-card-analyzer\src\test-images\TranquilThicket.jpg
Needs to
Error
The text was updated successfully, but these errors were encountered: