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

Windows: "cordova clean windows" command fails due to undefined variable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.4.1
    • 4.4.3
    • cordova-windows

    Description

      Running the cordova clean windows command in a Windows Cordova platform project fails with the following error:

      Error: TypeError: Cannot read property 'root' of undefined
      at cleanImages (C:\project\myapp\platforms\windows\cordova\lib\prepare.js:396:71)

      It looks like the cleanImages function in prepare.js isn't being passed the locations parameter on line 484.
      If I change line 484 from

      cleanImages(projectRoot, projectConfig);
      

      to

      cleanImages(projectRoot, projectConfig, self.locations);
      

      it completes the icon and splash screen image removal as expected.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jamespwhite James White
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: