Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24626] CLI: Build process errors out with Error: Cannot find module '../node-titanium-sdk/lib/titanium'

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2017-04-27T20:25:55.000+0000
Affected Version/sRelease 6.2.0
Fix Version/sRelease 6.2.0
ComponentsCLI, Tooling
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2017-04-25T21:01:42.000+0000
Updated2017-05-26T13:28:59.000+0000

Description

Description

When building using 6.2.0.v20170425075343 the build process will error out with Error: Cannot find module '../node-titanium-sdk/lib/titanium', the path used is in the hack is wrong https://github.com/appcelerator/titanium_mobile/blob/3f6ce6d1b20d89a3aa97b4703dccf4e872dd77d2/node_modules/titanium-sdk/lib/titanium.js#L1

Steps to reproduce

ti sdk install -b master -d

Edit your tiapp.xml to use the SDK

Build your app ti build -p ios

Actual

Above error thrown

Expected

Build process should not error

Comments

  1. Ewan Harris 2017-04-25

    PR: https://github.com/appcelerator/titanium_mobile/pull/8994
  2. Lee Morris 2017-05-26

    I was able to verify this fix using the following environment; iPhone 7 Simulator (10.2) MacOS 10.11.6 (15G31) Studio 4.9.0.201705021158 Ti SDK 6.2.0.v20170526055219 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.7.0_80

JSON Source