Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2660] iOS: Error: Cannot find module './analytics' when building with simulator

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-04-19T17:36:11.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterNilmar Castro
AssigneeMauro Parra-Miranda
Created2013-04-19T12:15:03.000+0000
Updated2016-03-08T07:41:45.000+0000

Description

*Log*
[ERROR] :  Error: Cannot find module './analytics'
    at Module._resolveFilename (module.js:338:15)
    at Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/node-appc/lib/appc.js:51:34
    at Array.forEach (native)
    at Object.<anonymous> (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/node_modules/node-appc/lib/appc.js:50:3)
    at Module._compile (module.js:449:26)
    at Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
---------------------------------------------
    at exports.execFile (child_process.js:594:9)
    at exports.exec (child_process.js:481:18)
    at detectLocale (/usr/local/lib/node_modules/titanium/lib/titanium.js:53:4)
    at setLocale (/usr/local/lib/node_modules/titanium/lib/titanium.js:60:3)
    at /usr/local/lib/node_modules/titanium/lib/titanium.js:78:4
    at Object.<anonymous> (/usr/local/lib/node_modules/titanium/lib/titanium.js:85:3)
    at Module._compile (module.js:449:26)
    at Module._extensions..js (module.js:467:10)
[ERROR] Unable to find command "build"

Comments

  1. Daniel Sefton 2013-04-19

    Hi Nilmar, A probable resolution to this is to upgrade your Studio and SDK to the latest 3.1 stable by heading to (Help -> Check for Updates) and (Help -> Check for Titanium Updates). If not, we need more information, including: > Titanium Studio log file and diagnostic (Help -> Titanium Studio -> View Log File) and (Help -> Titanium Studio -> Run Diagnostic Test...). > Whether this happens for all projects, including newly created ones with the project templates Thanks.
  2. Nilmar Castro 2013-04-19

    Hi Daniel I'm using Titanium Studio, build: 3.1.0.201304171607 The Log I have is: [Removed for size]
  3. Daniel Sefton 2013-04-19

    Hi Nilmar, Sorry I had to remove the log file you posted, it's way too large for us to sift through :) Please can you go to (Help -> Titanium Studio -> Clear Log File), then try to build with the simulator again to get the error, and then attach the studio log file as studio.log (Edit -> Attachment...), and also the diagnostic.log at (Help -> Titanium Studio -> Run Diagnostic Test...) It looks like you have a CI build of studio (not stable)? And have you tried running it with 3.1 GA? Thanks!

JSON Source