Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-1056

"Path must be a string. Received undefined" error is thrown if you build to Android using Node 6.X.X strictly with Appc CLI

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: Release 5.4.0
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
    • Environment:

      Appc CLI NPM: 4.2.7
      Appc CLI Core: 5.4.0-35
      Arrow: 1.8.2
      SDK: 5.4.0.v20160725003348
      Node: v6.3.1
      OS: Mac OS X (10.11.6)
      Device: Samsung Galaxy S4 (4.4.4), Genymotion Emulator (5.1.0)

    • Severity:
      Major

      Description

      Details: Path must be a string. Received undefined error is thrown if you build to Android using Node 6.X.X strictly with Appc CLI.

      Notes:

      • I am able to build to Android using Titanium and Alloy CLI independently with Node 6.X.X.
      • This issue is not reproducible with Node 4.X.X.
      • This issue is not reproducible on iOS.

      Steps to reproduce:

      1. Make sure you have Node 6.X.X installed on your machine
      2. Create a mobile project with appc new
      3. Build and install project to Android: appc run -p android

      Actual: Path must be a string. Received undefined error is thrown during build:

      [TRACE] Found 2 devices, checking if any of them are the emulator...
      [TRACE] Emulator is running!
      [TRACE] Checking if boot animation has finished...
      [TRACE] Emulator is not booted yet; checking again in 2000 ms
      2016-07-26T22:17:40.735Z | ERROR  | An uncaught exception was thrown!
      Path must be a string. Received undefined
      2016-07-26T22:17:40.735Z | ERROR  | Path must be a string. Received undefined
      

      Expected: Android build should not fail when using Node 6.X.X.

        Issue Links

          Activity

          Hide
          scconway8@gmail.com Sean Conway added a comment -

          I am seeing this issue using CLI 5.0.11. This seems to be the most recent version after installing via npm install -g titanium.

          Show
          scconway8@gmail.com Sean Conway added a comment - I am seeing this issue using CLI 5.0.11. This seems to be the most recent version after installing via npm install -g titanium.
          Hide
          fmiao Feon Sua Xin Miao added a comment -

          Have you tried Titanium SDK 6.0.0.GA which supports Node.js v6?

          Show
          fmiao Feon Sua Xin Miao added a comment - Have you tried Titanium SDK 6.0.0.GA which supports Node.js v6?
          Hide
          scconway8@gmail.com Sean Conway added a comment -

          I resolved it by using node v4x. It does not work with v6.x which I was using when I saw the error.

          Show
          scconway8@gmail.com Sean Conway added a comment - I resolved it by using node v4x. It does not work with v6.x which I was using when I saw the error.
          Hide
          btknorr Brian Knorr added a comment -

          I am running into this issue with the latest sdk and cli using Node 6.X.X +. You need to reopen this issue.

          Show
          btknorr Brian Knorr added a comment - I am running into this issue with the latest sdk and cli using Node 6.X.X +. You need to reopen this issue.
          Hide
          wluu Wilson Luu added a comment -

          I am still unable to reproduce this issue with the current GA stack:

          Appc CLI NPM: 4.2.8
          Appc CLI Core: 6.1.0
          SDK: 6.0.1.GA
          Node: v6.9.2
          OS: Mac OS X (10.12.2)

          If possible, when running the mobile project, include the debug and trace logs: DEBUG=* appc run -l trace.

          Show
          wluu Wilson Luu added a comment - I am still unable to reproduce this issue with the current GA stack: Appc CLI NPM: 4.2.8 Appc CLI Core: 6.1.0 SDK: 6.0.1.GA Node: v6.9.2 OS: Mac OS X (10.12.2) If possible, when running the mobile project, include the debug and trace logs: DEBUG=* appc run -l trace .

            People

            • Assignee:
              msamah Ashraf Abu (Inactive)
              Reporter:
              wluu Wilson Luu
            • Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development

                  Poker Sessions

                  This issue is currently not assigned to any Poker Session.

                    Git Source Code