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

Arrow app crashes with Uncaught Exception Cannot find module './ReactHostOperationHistoryHook'


    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: appc-cli 6.1.0-300
    • Fix Version/s: Release 6.1.0
    • Component/s: Core
    • Labels:
    • Environment:

      OS: Mac OS X 10.11.6
      Appc core: 6.1.0-300
      Appc NPM: 4.2.8

    • Severity:
    • Story Points:
    • Sprint:
      2016 Sprint 24 Tooling



      When attempting to run an arrow app the app will crash with the below, while at first glance this may appear to be an issue with arrow, the root cause lies in the appc publish command as checking jenkins shows that this file is being excluded as it matches one of theseregexes, changing them to use the ^ character will fix the issue to include ./ReactHostOperationHistoryHook but will then fail to include two files called History.js from react-router (these do not cause a crash to my knowledge, but they should be included) and also the logs folder from arrow-admin-api (this does cause a crash), this folder is required

      Uncaught Exception Cannot find module './ReactHostOperationHistoryHook'
      Error: Cannot find module './ReactHostOperationHistoryHook'
          at Function.Module._resolveFilename (module.js:469:15)
          at Function.Module._load (module.js:417:25)
          at Module.require (module.js:497:17)
          at require (internal/module.js:20:19)
          at Object.<anonymous> (/Users/eharris/.appcelerator/install/6.1.0-300/package/node_modules/arrow/node_modules/react/lib/ReactDebugTool.js:15:37)
          at Module._compile (module.js:570:32)
          at Object.Module._extensions..js (module.js:579:10)
          at Module.load (module.js:487:32)
          at tryModuleLoad (module.js:446:12)
          at Function.Module._load (module.js:438:3)

      Steps to reproduce
      1. Download 6.1.0-300 appc use 6.1.0-300
      2. Create an arrow app appc new -t arrow -n myarrowapp && cd myarrowapp
      3. Run the app appc run
      Actual result

      Crash with the above error

      Expected result

      App should not crash




            • Assignee:
              eharris Ewan Harris
              eharris Ewan Harris
              Feon Sua Xin Miao
            • Watchers:
              5 Start watching this issue


              • Created:

                Git Integration