[ 
https://issues.apache.org/jira/browse/CB-11579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15399363#comment-15399363
 ] 

ASF GitHub Bot commented on CB-11579:
-------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/cordova-windows/pull/189


> 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
>
> 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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to