I.call is not a function

So I was making a maze type game and was testing out the hitboxes. Whenever I hit the wall, I keep going through, even though I set it as immovable. I look in the console and I get the error phaser.min.js:1 Uncaught TypeError: i.call is not a function. Honestly I got no clue what this is refrencing, because I’ve never writted anything with i.call. If it helps, here’s the code.

//First Maze Screen
class Scene3 extends Phaser.Scene{
    constructor() {
        super({ key : 'Scene3' });
    }
    create() {
        this.cursors = this.input.keyboard.createCursorKeys()
        this.wall50x100 = this.physics.add.image(300,200,'50x100').setImmovable()
        this.sprite = this.physics.add.sprite(200,200,'sprite')
        this.sprite.setOrigin(0,0)
        this.wall50x100.setOrigin(0,0)
        this.physics.add.collider(this.wall50x100, this.sprite, function ()
        {
            wall.setAlpha(0.5);
        },this);
        //////////////////////////////////////////

        //////////////////////////////////////////
        this.back = this.add.image(50,500,'back')
        this.back.setOrigin(0,0)
        this.back.setInteractive()

        this.back.on('pointerup',function(){
            this.scene.start('Scene2');
          },this)    

        this.add.text(20, 20, "Scene: 3", {font: "25px Arial", fill: "green"});
    }

    update() {
        if(this.cursors.right.isDown){
            this.sprite.x +=5
        }
        if(this.cursors.left.isDown){
            this.sprite.x -=5
        }
        if(this.cursors.up.isDown){
            this.sprite.y -=5
        }
        if(this.cursors.down.isDown){
            this.sprite.y +=5
        }
    }

Use phaser.js instead of phaser.min.js. Produce the error again. Expand the error trace in the console.

Got the same error, here’s the full thing.

Uncaught TypeError: i.call is not a function
at initialize.separate (phaser.js:1:282518)
at initialize.collideSpriteVsSprite (phaser.js:1:287497)
at initialize.collideHandler (phaser.js:1:286903)
at initialize.collideObjects (phaser.js:1:286693)
at initialize.update (phaser.js:1:265784)
at initialize.step (phaser.js:1:280860)
at initialize.update (phaser.js:1:280596)
at h.emit (phaser.js:1:10320)
at initialize.step (phaser.js:1:186519)
at initialize.update (phaser.js:1:390560)
separate @ phaser.js:1
collideSpriteVsSprite @ phaser.js:1
collideHandler @ phaser.js:1
collideObjects @ phaser.js:1
update @ phaser.js:1
step @ phaser.js:1
update @ phaser.js:1
h.emit @ phaser.js:1
step @ phaser.js:1
update @ phaser.js:1
step @ phaser.js:1
step @ phaser.js:1
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1
requestAnimationFrame (async)
e @ phaser.js:1

The fourth argument to collider() is wrong. It should be null and the fifth this.