Software Archive
Read-only legacy content
17061 Discussions

need solution on "TypeError: Cannot read property 'length' of undefined"?

Radha_W_
Beginner
533 Views

I am making game in construct 2.

getting two types of errors when opening the project in intel xdk.

below are the errors.

Error opening project

TypeError: Cannot read property 'length' of undefined 

TypeError: Cannot read property 'indexOf' of undefined

I have tried the another xdk file in intel xdk that's works good.

and one another thing is some time the error has not shown in same project and apk generated successfully, but when i install that apk in phone, the app have crashed, means when i clicked on play button the game had exit.
I hope you will suggest something.

Thanks

0 Kudos
2 Replies
PaulF_IntelCorp
Employee
533 Views

I'm sending you a private message for a copy of your project.

0 Kudos
PaulF_IntelCorp
Employee
533 Views

I would like to know how it works

I recommend you do some JavaScript debugging, what you're describing sounds like a bug in your app. If you are seeing this in a dialog box generated by the XDK, then it is a bug in the XDK, but it is not something I can help you with unless you provide more specific details. A screenshot of the dialog box along with the error message and how you got the error message would be very helpful.

0 Kudos
Reply