rblopes / generator-phaser-plus

[🛑 DISCONTINUED] It has been a long journey but development of `generator-phaser-plus` is now over. I recommend you have a look and fork `yandeu/phaser-project-template` instead.
https://github.com/yandeu/phaser-project-template
MIT License
144 stars 14 forks source link

Getting "Super expression must either be null or a function, not undefined" when extending a Phaser class #8

Closed pparke closed 8 years ago

pparke commented 8 years ago

First, just want to say I love the work you've done here and I've been using your generator exclusively for my Phaser projects.

I've just begun setting up a new project and encountered this error while extending a Phaser class in the same way that I have previously using this generator. Thinking it may have been something that I did, I set up a fresh project and created a new file extending the Phaser.Tilemap class and sure enough I immediately encountered the same error. Extending something like Phaser.Group works fine. Difference seems to be that I'm using the latest version of your generator for this project. Any help you could provide would be greatly appreciated.

Edit: Looks like the issue was fixed with a recent update

rblopes commented 8 years ago

Hi, @pparke. Sorry for the late reply and thanks for choosing slush-phaser-plus.

Just to be sure if the issue is with the generator or the template project, I have a few questions.

pparke commented 8 years ago

Sorry for the lack of details, I had thought it was resolved after updating the generator but it turns out that the issue is still occurring. I think that you're right about the "no physics" option being the cause since I am able to get it working when starting a new project and selecting arcade physics. Thanks for getting back to me :)