Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9420

'cordova prepare --browserify' fails on windows when at least one plugin is added

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      Repro steps:

      cordova create app
      cordova platform add windows
      cordova plugin add cordova-plugin-device
      cordova prepare --browserify
      

      Expected:
      Project prepared successfully

      Actual:
      command fails with following stacktrace:

      Error: Cannot find module 'd:PROJECTSTemp       est-browserifypluginscordova-plugin-devicewwwdevice.js' from 'd:\PROJECTS\Temp\test-browserify\platforms\android\assets\www'
          at d:\cordova\cordova-js\node_modules\browserify\node_modules\resolve\lib\async.js:46:17
          at process (d:\cordova\cordova-js\node_modules\browserify\node_modules\resolve\lib\async.js:173:43)
          at ondir (d:\cordova\cordova-js\node_modules\browserify\node_modules\resolve\lib\async.js:188:17)
          at load (d:\cordova\cordova-js\node_modules\browserify\node_modules\resolve\lib\async.js:69:43)
          at onex (d:\cordova\cordova-js\node_modules\browserify\node_modules\resolve\lib\async.js:92:31)
          at d:\cordova\cordova-js\node_modules\browserify\node_modules\resolve\lib\async.js:22:47
          at FSReqWrap.oncomplete (fs.js:95:15)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vladimir.kotikov Vladimir Kotikov
                Reporter:
                vladimir.kotikov Vladimir Kotikov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: