gnerkus Posted August 20, 2014 Share Posted August 20, 2014 When I try to add a plugin to my game, I get this error: `Uncaught TypeError: Cannot read property 'add' of undefined` When I inspect the game object, the plugins attribute looks like this: plugins: { _i: -1, _len: 0, game: Phaser.Game, plugins: Array[0] _proto_: Object} There is no 'add' method. Link to comment Share on other sites More sharing options...
lewster32 Posted August 20, 2014 Share Posted August 20, 2014 Which version of Phaser are you running? This should be working in the latest (2.0.7). Link to comment Share on other sites More sharing options...
rich Posted August 20, 2014 Share Posted August 20, 2014 Make sure you haven't accidentally overwritten the plugins object. Otherwise as you can see by looking at the source, all the methods are there and exposed (and have been for many versions now as we use plugins quite extensively in our client projects) Link to comment Share on other sites More sharing options...
Maksym Posted February 19, 2016 Share Posted February 19, 2016 I have the same problem. Phaser version (and phaser isometric) the last. Link to comment Share on other sites More sharing options...
Recommended Posts