cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Sorokin (JIRA)" <>
Subject [jira] [Created] (CB-12415) Windows build fails if start page is missing
Date Thu, 02 Feb 2017 07:49:51 GMT
Alexander Sorokin created CB-12415:

             Summary: Windows build fails if start page is missing
                 Key: CB-12415
             Project: Apache Cordova
          Issue Type: Bug
          Components: Windows
    Affects Versions: Master, 4.4.3
            Reporter: Alexander Sorokin
            Priority: Minor

cordova create foo
rm ./foo/www/index.html
cd foo
cordova platform add windows
cordova build

Build successful 

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

      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
Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message