Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-3846

Upgrading to lazyload version of library breaks under certain conditions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 2.9.0
    • cordova-cli
    • None
    • Mac OS X 10.8.4

    Description

      I tried to upgrade my version of Cordova to 2.8.19 using npm using the following command, "sudo npm install g cordova". This appeared to work but it resulted in an incomplete install. When I try to build my application I get an error> cp: no such file or directory: /Users/Joe/.cordova/lib/ios/cordova/2.8.0/CordovaLib/cordova.js
      Which is because /Users/Joe/.cordova/ is empty.

      Reason for this is that on running build, the tools look to the lazy load directory to retrieve JS and possibly other bits. Currently, lazy load only fires by hooking into platform add. Instead, lazy load should be called into for almost every command relying on libraries: the platform parsers, and possibly others.

      Attachments

        1. npminstall.log
          62 kB
          Joe Reda
        2. cordova.log
          201 kB
          Joe Reda

        Activity

          People

            filmaj Filip Maj
            mobilejoe Joe Reda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: