Help with camera movement

im trying to get the camera to follow the mouse but i keep geting an error like this: Uncaught TypeError: Cannot read property ‘getPosition’ of null

var mousep = this.entity.findByName('mouse').getPosition();
            this.entity.setPosition(mousep.x,mousep.y);

Literally it means that you don’t handle your mouse.

So, you have to ensure that ‘mouse’ object even exists.

Probably you better to show us your project in order to narrow down possible issues.

here is link
https://playcanvas.com/project/577854/overview/mouse-maze