alert(“Page is loaded”);
var Engine = Matter.Engine,
and I verified that the alert popped up, therefore the script being executed. But the browser page shows this error:
script.js:3 Uncaught ReferenceError: Matter is not defined at script.js:3
However, “Matter” is a class from a package called matter-js which I already included in my package.json:
(which I added using Add Package button so glitch knows about that package). I also remixed the project after adding the package. So I wonder what I’m missing.