Error: TypeError: Cannot read property 'length' of undefined

I am working on a game on gamejolt called A Youtube Adventure, however, I keep getting this error:


TypeError: Cannot read property 'length' of undefined


When I checked the debug menu to see whats wrong, and this is what it reads:


TypeError: Cannot read property 'length' of undefined
    at Object.Yanfly.Util.getRandomElement (/C:/Users/The%20Nitro%20Flamer/Documents/Games/AYA%20MV/js/plugins/YEP_X_AnimatedSVEnemies.js:1776)
    at Game_Enemy.svBattlerName (/C:/Users/The%20Nitro%20Flamer/Documents/Games/AYA%20MV/js/plugins/YEP_X_AnimatedSVEnemies.js:1106)
    at Sprite_Enemy.setSVBattler (/C:/Users/The%20Nitro%20Flamer/Documents/Games/AYA%20MV/js/plugins/YEP_X_AnimatedSVEnemies.js:1424)
    at Sprite_Enemy.setBattler (/C:/Users/The%20Nitro%20Flamer/Documents/Games/AYA%20MV/js/plugins/YEP_X_AnimatedSVEnemies.js:1414)
    at Sprite_Enemy.Sprite_Battler.initialize (rpg_sprites.js:462)
    at Sprite_Enemy.Sprite_Battler.initialize (/C:/Users/The%20Nitro%20Flamer/Documents/Games/AYA%20MV/js/plugins/YEP_BattleEngineCore.js:2541)
    at Sprite_Enemy.initialize (rpg_sprites.js:924)
    at new Sprite_Enemy (rpg_sprites.js:917)
    at Spriteset_Battle.createEnemies (rpg_sprites.js:2619)
    at Spriteset_Battle.createLowerLayer (rpg_sprites.js:2427)


I don't understand it and can't find a solution. Can someone please help me?
There are only two possibilities:


either you didn't configure one option for one of those scripts correctly (perhaps having an enemy linking to a picture that did not exist or had a wrong filename), or you loaded a saved game from before one of those plugins was installed - in that case you need to start a new game, all older save files will be incompatible now.
From looking at the debug log it seems there is a missing sideview enemy graphic?

Original thread: https://forums.rpgmakerweb.com/threads/error-typeerror-cannot-read-property-length-of-undefined.65161/