Sign in to follow this  

TypeError: a is undefined

Recommended Posts

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.


Share this post

Link to post
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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.