Error reading "shared"?

So I’ve been trying to use javascript to add some functionality, but it keeps throwing an error. I’m not sure where the problem is coming from, since according to the code examples I’ve been looking at, what I’m writing should be working fine. It’s to the point that even the examples others have shared (which presumably worked fine in the past?) are also coming up with the error. This one, for instance: GDevelop 5

Here’s the error text:

This error comes from a JavaScript code event. Verify your code to ensure no error is happening. You can use the Developer Tools (menu “View” > “Toggle Developer Tools”). Full error is: Cannot read properties of undefined (reading ‘shared’)

I’m guessing maybe PIXI has changed somehow? Along those lines, does anyone know if there’s a PIXI reference I can use somewhere? TIA