Unable to Load Level

Unfortunately can not play two level. with both I get the message that the level could not be loaded. Unfortunately, the reset and commenting out code (What is offered in the message) does not work either.
In the Console The following message appears:

"|Vishnu's Krieger| Non-UserCodeError: TypeError: this.getNearest is not a function
Allied.prototype.getNearestEnemy@http://codecombat.com/javascripts/world.js line 333 > eval:186:12
AutoTargetsNearest.prototype.chooseAction@http://codecombat.com/javascripts/world.js line 333 > eval:67:22
n</t.prototype.callChainedMethod@http://codecombat.com/javascripts/world.js:225:189
r@http://codecombat.com/javascripts/lodash.js:50:25
Action.prototype.update@http://codecombat.com/javascripts/world.js line 333 > eval:41:13
o</t.prototype.getNextFrame@http://codecombat.com/javascripts/world.js:395:98
World</World.prototype.getFrame@http://codecombat.com/javascripts/world.js:297:45
World</World.prototype.loadFrames@http://codecombat.com/javascripts/world.js:306:5
runWorld@http://codecombat.com/javascripts/workers/worker_world.js:399:3
@http://codecombat.com/javascripts/workers/worker_world.js:527:3
" play:7:7
: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create aether.js:24:0
"|Vishnu's Krieger| Worker initialized after 395ms" play:7:7

Which levels? Please specify.

Level "Siege of Stonehold"
Level "Hinterwald Schatz"
and Now i have a “Lowercase / Uppercase” - Problem whith "this.findNearestEnemy();"
Message: “this.getNearest is not a Function”

The levels load here correctly. And this.findNearestEnemy() looks correct. It would help if you show your full code, so to see what may be wrong. add three backticks (`) before and after for proper formatting.

loop {
    var items = this.findNearestItem();
    var feind = this.findNearestEnemy();
    
    if(feind)
    {
        
        if(this.distanceTo(feind)<10)
        {
            if (this.isReady("cleave"))
            {
                if(this.findNearest(this.findEnemies()).lenght <2)
                {
                    this.shield();
                }
                else {
                    this.cleave(feind);
                }
                //this.cleave(feind);
            }
            this.attack(feind);
            this.bash(feind);
            
        }
    }
    else if(items)
    {
        var itempos = items.pos;
        this.moveXY(itempos.x, itempos.y);
    }
    else {
        this.moveXY(45,48);
    }
}

Uh…okay. There’s a piece of code. There are a few errors, but those can be fixed. What, exactly is this piece of code for?