You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2016/08/01 14:19:20 UTC

[jira] [Reopened] (CB-11579) Windows: "cordova clean windows" command fails due to undefined variable

     [ https://issues.apache.org/jira/browse/CB-11579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Kotikov reopened CB-11579:
-----------------------------------

> Windows: "cordova clean windows" command fails due to undefined variable
> ------------------------------------------------------------------------
>
>                 Key: CB-11579
>                 URL: https://issues.apache.org/jira/browse/CB-11579
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Windows
>    Affects Versions: 4.4.1
>            Reporter: James White
>              Labels: windows
>             Fix For: 4.4.3
>
>
> Running the *cordova clean windows* command in a Windows Cordova platform project fails with the following error:
> {color:red}
> Error: TypeError: Cannot read property 'root' of undefined
>   at cleanImages (C:\project\myapp\platforms\windows\cordova\lib\prepare.js:396:71)
> {color}
> 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
> {code:Javascript}
> cleanImages(projectRoot, projectConfig);
> {code}
> to 
> {code:Javascript}
> cleanImages(projectRoot, projectConfig, self.locations);
> {code}
> it completes the icon and splash screen image removal as expected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org