[
https://issues.apache.org/jira/browse/CB-11579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vladimir Kotikov closed CB-11579.
---------------------------------
Resolution: Fixed
> 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: [email protected]
For additional commands, e-mail: [email protected]