Resource error and ive tried everything need help!

i need some help here, i am still stuck on this project and it seems like every script i write there is a new issue everytime i launch my game i get this error
Uncaught TypeError: Cannot read properties of null (reading ‘resource’)

here is the link to my code and game editor
https://playcanvas.com/editor/code/1261503?tabs=198161379&line=23&col=30&error=true
https://playcanvas.com/editor/scene/2083474

please help!!!

Your template asset name is Playerlaser, in code you are searching for PlayerLaser so null is returned from the asset registry.

Change

var templateAsset = this.app.assets.find("PlayerLaser");

to

var templateAsset = this.app.assets.find("Playerlaser");

it worked thank you that fixed that issue now is there anychance you would know why my game crashes everytime space is pressed how do i fix that