Jump to content

TypeError: a is undefined


zoeybird
 Share

Recommended Posts

Hey,
I currently develop a simple game with Phaser and Javascript for a student project . I have added a "start screen" and now an error message "TypeError: an is undefined" pops up by calling the first state . It's located in the file "phaser. min. js". I already have tried to exchange this by another "phaser. min. js" file, but it still gets the mistake.

 

Does somebody know advice?

 

The attached file contains the js code of the first state.

state1.txt

Link to comment
Share on other sites

You'll need to trace the error up through the layers to your code to find out where it's happening. It sounds like a function is missing a required argument - you should replace phaser.min.js with phaser.js (unminified code allows for much easier debugging and should always be used during development) and the error will make more sense.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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