New ipad app - "Can't find variable: module"

You must Login before you can answer or comment on any questions.

I've been trying to complete the TIBountyHunter Labs but when trying to simulate them they open, showing the splash screen, then close immediately. Even the source downloaded directly from appcelerator's lab page. It gives this error before closing:

[ERROR] Script Error = {
    expressionBeginOffset = 529;
    expressionCaretOffset = 535;
    expressionEndOffset = 535;
    line = 27;
    message = "Can't find variable: module";
    name = ReferenceError;
    sourceId = 116237944;
}
2012-07-06 11:31:34.740 BasicApp[43274:5b03] *** Terminating app due to uncaught exception of class '__NSCFDictionary'
terminate called after throwing an instance of '__NSCFDictionary'
The line it is indicating is: module.exports = ApplicationWindow;

I created a new mobile(ipad) project, haven't changed a thing, and it still gives the same error. Titanium SDK: 1.5.1, Titanium Studio, build: 2.1.0.201206251749, iOS Simulator, I'm using Mac OS X Version 10.6.8

Log from help->view log file:

!SESSION 2012-07-06 11:10:24.665 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_33
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/thomashale/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86 -keyring /Users/thomashale/.eclipse_keyring -consoleLog -showlocation
 
!ENTRY org.eclipse.core.net 1 0 2012-07-06 11:10:44.076
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
 
!ENTRY org.eclipse.osgi 2 1 2012-07-06 11:15:50.235
!MESSAGE NLS missing message: AddRemoveList_inputMessageErrorInfo in: com.aptana.formatter.ui.preferences.messages

— asked 11 months ago by Jonathan Craddock
6 Comments
  • Hum think you might want to use Titanium SDK 2.1.0 1.5.1 is way way out of date ....

    — commented 11 months ago by Trevor Ward

  • Titanium SDK gives me the error:

    /usr/bin/python: can't open file '/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/iphone/builder.py': [Errno 2] No such file or directory

    — commented 11 months ago by Jonathan Craddock

  • do a clean build on the project and if that doesn't work reinstall the sdk

    — commented 11 months ago by Trevor Ward

  • Show 3 more comments

Your Answer

Think you can help? Login to answer this question!