Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26869] CLI: Android build fails with cannot find module error

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2019-03-04T11:51:20.000+0000
Affected Version/sRelease 8.1.0
Fix Version/sRelease 8.1.0
Componentsn/a
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2019-02-28T14:21:44.000+0000
Updated2019-03-04T11:51:20.000+0000

Description

Description

The android build currently errors with the below, this is because it's trying to look for a dependency of the app used for polyfilling which was removed
[LiveView] { Error: Cannot find module '@babel/polyfill/package.json'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.resolve (internal/module.js:18:19)
    at unmarkPackageAndDependencies (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/android/cli/commands/_build.js:2824:33)
    at AndroidBuilder.<anonymous> (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/android/cli/commands/_build.js:2840:5)
    at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/node_modules/node-appc/lib/async.js:82:6
    at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/node_modules/async/dist/async.js:3888:9
    at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/node_modules/async/dist/async.js:473:16
    at replenish (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/node_modules/async/dist/async.js:1006:25)
    at iterateeCallback (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/node_modules/async/dist/async.js:995:17)
    at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/node_modules/async/dist/async.js:969:16 code: 'MODULE_NOT_FOUND' }

Steps to reproduce

1. Build for Android

Actual

Above error

Expected

No error

Comments

  1. Ewan Harris 2019-02-28

    PR: https://github.com/appcelerator/titanium_mobile/pull/10735
  2. Samir Mohammed 2019-03-04

    Closing ticket, fix verified SDK version 8.1.0.v20190301155716. *Test steps* Ran a titanium application through CLI using the Liveview flag and no error was seen (Android). *Test Environment*
       SDK 8.1.0.v20190301155716
       Google pixel xl 7.1 Sim
       APPC CLI: 7.0.10-17
       Operating System Name: Mac OS Mojave
       Operating System Version: 10.14.2
       Node.js Version: 8.9.1
       Xcode 10.1
       

JSON Source