Template breaks when I add anything

Hello, I just started getting into Phaser development so I used the command line npm create @phaserjs/game@latest to install a template to build off of. Chose a complete vite build in Javascript. The problem is that whenever I try to create any objects or physics groups it will break things. I used the preload function in ‘preload.js’ file to load a sprite sheet of playing cards and that works just fine but when I try to create a static physics group it will deactivate the ‘pointerdown’ listeners that advance through the scenes and if I create that physics group in the ‘create’ function for ‘preloader.js’ it will even break the text box for the ‘main menu’ scene. I haven’t changed anything else and I’m struggling to figure out why it is causing problems. Can anyone tell what I’m doing wrong?

:waving_hand:

Open the browser’s Developer Tools and look for errors in the console.