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

cordova run --target xxx dies if blackberry10.json is empty

    XMLWordPrintableJSON

Details

    Description

      $ mv ~/.cordova/blackberry10.json ~/.cordova/blackberry10.json.x ; touch ~/.cordova/blackberry10.json; cordova run --target foo ; mv ~/.cordova/blackberry10.json.x ~/.cordova/blackberry10.json

      module.js:485
      throw err;
      ^
      SyntaxError: ~/.cordova/blackberry10.json: Unexpected end of input
      at Object.parse (native)
      at Object.Module._extensions..json (module.js:482:27)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at Object._self.getProperties (project/platforms/blackberry10/cordova/lib/utils.js:303:22)
      at Object.<anonymous> (project/spatial/platforms/blackberry10/cordova/lib/target-utils.js:22:39)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)

      Attachments

        Activity

          People

            jsoref Josh Soref
            jsoref Josh Soref
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: