Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Master, 4.4.3
-
None
Description
Repro:
cordova create foo rm ./foo/www/index.html cd foo cordova platform add windows@https://github.com/apache/cordova-windows cordova build
Expected:
Build successful
Actual:
Building project: C:\Cordova\foo\platforms\windows\CordovaApp.Windows.jsproj Configuration : debug Platform : anycpu Patching 8.1 in prebuild event... ls: no such file or directory: C:\Cordova\foo\platforms\windows\www\index.html grep: no paths given C:\Cordova\foo\platforms\windows\cordova\prebuild.js:65 if (shell.grep(reBaseJs, startPageFilePath).length === 0) { ^ TypeError: Cannot read property 'length' of null at patch (C:\Cordova\foo\platforms\windows\cordova\prebuild.js:65:48) at Object.<anonymous> (C:\Cordova\foo\platforms\windows\cordova\prebuild-81.js:20:1) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Function.Module.runMain (module.js:441:10) at startup (node.js:139:18) at node.js:974:3 C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1250,5): error MSB3073: The command "node "C:\Cor dova\foo\platforms\windows\\\cordova\\prebuild-81.js"" exited with code 1. [C:\Cordova\foo\platforms\windows\CordovaApp.Windows.j sproj] Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
Attachments
Issue Links
- links to