Jump to content

Uncaught TypeError: Object #<Object> has no method 'boot' _onBoot


dtc
 Share

Recommended Posts

I have no idea if it's related, but I had the same error when I created my game in JavaScript with Phaser and forgot to put the new keyword before Phaser.Game():

var game = Phaser.Game();

instead of :

var game = new Phaser.Game()

But as is it TypeScript, I've no idea how it's work.

Link to comment
Share on other sites

I have no idea if it's related, but I had the same error when I created my game in JavaScript with Phaser and forgot to put the new keyword before Phaser.Game():

var game = Phaser.Game();

instead of :

var game = new Phaser.Game()

But as is it TypeScript, I've no idea how it's work.

 

Indeed, I was forgetting "new".

 

All I have to say is "wow". -_- I can't believe I forgot the new keyword lol, jeez. I spent nearly 2 hours last night dissecting Phaser.js  trying to find a bug. 

 

Thank you so much! 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...