Get started with matter

I´ve been pulling my hair for a couple of days now trying to get started with Matter.

When adding a sprite I I get an error saying “Cannot read properties of undefined (reading ‘add’)”, as if the matter object did not exist.

I´m getting the same result when copy-pasting examples from the Phaser site (like this one for example: Phaser - Examples - Collision Event)

Do I have to manually import Matter? Or initialize it somehow?

Never mind, I figured it out!

I was using a local copy of the phaser lib, and when I changed to an online link it worked.