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

Cordova-cli breaking changes on master

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.6.0
    • Component/s: cordova-cli, cordova-lib
    • Labels:
    • Environment:

      Windows 7, 64 bit.
      NodeJS v0.10.28

      Description

      I have notice that the latest changes on cordova-cli master branch, are not working properly when --link-to is used for custom www resources.
      It throws a error on the module:

      cordova-cli\bin\cordova create test --link-to cordova-mobile-spec\www
      Creating a new cordova project with name "HelloCordova" and id "io.cordova.hello
      cordova" at location "C:\Users\Administrator\MobileSpecTests_New\test"
      Using custom www assets from undefined
      TypeError: Arguments to path.resolve must be strings
      at Object.exports.resolve (path.js:116:15)
      at Object.exports.relative (path.js:239:20)
      at Object.create (C:\Users\Administrator\MobileSpecTests_New\cordova-cli\nod
      e_modules\cordova-lib\src\cordova\create.js:108:56)
      at cli (C:\Users\Administrator\MobileSpecTests_New\cordova-cli\src\cli.js:23
      8:21)
      at Object.<anonymous> (C:\Users\Administrator\MobileSpecTests_New\cordova-cl
      i\bin\cordova:41:1)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Function.Module.runMain (module.js:497:10)

      The branch that is working properly is :rb_3.5.0-0.2.6, on that branch there's no problem at all, at least with --link-to.

      CLI on master branch is using "cordova-lib 21.6", as well as rb_3.5.0-0.2.6 branch, so the problem should in the CLI and not in the cordova-lib.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              martin.c.glez.glez Martin Gonzalez

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment