Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2614] Error building Alloy app on OSX 10.8.5 with 3.1.3GA

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-12-04T05:52:56.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy
Labelsn/a
ReporterAlex Bernier
AssigneeEric Wieber
Created2013-11-13T09:01:33.000+0000
Updated2016-03-08T07:41:42.000+0000

Description

I receive the following error when trying to deploy to simulator as well as when running the Ad Hoc Distribution build.
 
[INFO] :   Executing Alloy compile: /usr/local/bin/node  compile /Users/blah/Documents/Titanium_Studio_Workspace/blah_mobile/app --config platform=ios,version=0,simtype=none,devicefamily=iphone,deploytype=development
[DEBUG] :  module.js:340
[DEBUG] :      throw err;
[DEBUG] :            ^
[ERROR] :  : Cannot find module '/Users/blah/Documents/Titanium_Studio_Workspace/blah_mobile/undefined'
[DEBUG] :      at Function.Module._resolveFilename (module.js:338:15)
[DEBUG] :      at Function.Module._load (module.js:280:25)
[DEBUG] :      at Function.Module.runMain (module.js:497:10)
[DEBUG] :      at startup (node.js:119:16)
[DEBUG] :      at node.js:901:3
[ERROR] :  Alloy compiler failed

Comments

  1. Alex Bernier 2013-11-13

    I asked the community a couple of days ago here, without response: http://developer.appcelerator.com/question/159358/ios-cannot-find-module-undefined-modulejs-line-340
  2. Eric Wieber 2013-12-03

    Hello Alejandro, Unfortunately, I am unable to reproduce your issue and can run apps both with and without modules on the iOS Simulator and on iOS devices. I did these tests on a 10.8.5 Mac using Ti SDK 3.1.3.GA and iOS SDK 7.0 and 6.1. Could you please provide some sample code or a test case that we can use to see the error you are encountering? Also, does the app you are trying to run use any modules? If so, which modules and are they installed properly/fully?
  3. Alex Bernier 2013-12-03

    Hi Eric, thank you for looking into it. I upgraded to Studio 3.2 and no longer see the issue, BTW. Here are the modules my project is using. They have been the same before and after the issue. For that reason I don't think they're the culprit, and something else with the build was causing the issue:
       	<modules>
       		<module platform="commonjs">ti.cloud</module>
       		<module platform="android">ti.cloudpush</module>
       		<module>ti.styledlabel</module>
       		<module>analytics.google</module>
       		<module>ti.imagefactory</module>
       		<module>ti.newrelic</module>
       		<module>facebook</module>
       	</modules>
       
    Considering Studio 3.2 is almost GA, the issue isn't present in current Studio 3.2 builds, you're unable to reproduce, and I didn't find any similar "cannot find module 'undefined'" errors on the Q&A boards, I would completely understand if this was closed as "won't fix" or "not reproducible."

JSON Source