You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "James White (JIRA)" <ji...@apache.org> on 2016/07/14 18:25:20 UTC
[jira] [Created] (CB-11579) Windows: "cordova clean windows"
command fails due to undefined variable
James White created CB-11579:
--------------------------------
Summary: 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
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