So I’ve made a little game that works as planned as a normal web page (see the CodePen here)
But, when I put it into a local server WordPress page I get this error and nothing works:
TypeError: undefined is not an object (evaluating 'p0.cx.baseVal')
The error references line 55 in the JS part of the Pen. I’m stumped.
FYI is that I’m using the WP Scripts n Styles plug-in on the WP site. I’ve done other pages there using the same library (plain draggable) and those seem to work well.
While I can pull the game in via an iFrame (which does work), I’d prefer not to.