Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24662] CLI: Build errors out with "Couldn't find preset "babili" relative to directory" when deploy type is test

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2017-05-06T08:24:11.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.1.0, node-titanium-sdk 0.2.2, Release 6.2.0
ComponentsAndroid, CLI, iOS
Labelsn/a
ReporterEwan Harris
AssigneeChristopher Williams
Created2017-05-05T13:45:40.000+0000
Updated2017-06-23T17:20:31.000+0000

Description

Description

Building an application for device (or test deploytype) fails with the below, error is coming from babel-core here https://github.com/babel/babel/blob/6.x/packages/babel-core/src/transformation/file/options/option-manager.js#L269
[INFO]  Processing JavaScript files
[ERROR] Couldn't find preset "babili" relative to directory "/Users/eharris/Documents/Appcelerator_Studio_Workspace/ti.bench"

Steps to reproduce

1. Create an app ti create -t app --name babelerror --id com.babel -p all --no-prompt --workspace-dir . 2. Build for device/development deploytype ti build -p android -T device --build-only or ti build -p android -T device --build-only or {{ti build -p android -D development --build-only

Actual

Build errors out

Expected

Build should not error out

Comments

  1. Ewan Harris 2017-05-05

    [~cwilliams] not sure whether this is a known? Couldn't find anything in jira
  2. Christopher Williams 2017-05-05

    master/6.2.0: https://github.com/appcelerator/titanium_mobile/pull/9023 6.1.0: https://github.com/appcelerator/titanium_mobile/pull/9024
  3. Hans Knöchel 2017-05-05

    CR passed. This also should fix the reopening of TIMOB-23490, so [~amukherjee]: Please merge this one first.
  4. Abir Mukherjee 2017-05-06

    Passed FR with this environment: Node Version: 6.10.1 NPM Version: 3.10.10 Mac OS: 10.12.4 Appc CLI: 6.2.0 Appc CLI NPM: 4.2.9 Titanium SDK versions: 6.1.0 and 6.2.0 locally built with PR's 9023 and 9024 Xcode 8.3.2 Tested with the demo code in the description, and I was able to build successfully. [~hansknoechel], [~cwilliams] I was able to merge PR/9024 for 6_1_X. I was not able to merge PR/9023 for master. Please check the PR, and let me know what to do. Once that's resolved, I'll move this ticket out of "In Review" status.
  5. Abir Mukherjee 2017-05-06

    Fix is seen in these builds: 6.1.0.v20170506074257 6.2.0.v20170506074136 Closing this ticket.
  6. Abir Mukherjee 2017-05-08

    [~hansknoechel] Merging this PR did not fix the issue for TIMOB-23490.

JSON Source