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

cordova-browser@5 doesn't add with cordova<7

    Details

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

      Description

      cordova platform add browser@latest --nofetch
      Warning: using prerelease version 7.0.2-dev (cordova-lib@7.0.2-dev)
      Adding browser project...
      Unable to load PlatformApi from platform. Error: Cannot find module 'cordova-common'
      Error: Uncaught, unspecified "error" event. (The platform "browser" does not appear to be a valid cordova platform. It is missing API.js. browser not supported.)
      

      I believe cordova-common wasn't properly bundled into cordova-browser@5. Works fine if I add it locally. Easy fix

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stevegill Steve Gill
                Reporter:
                stevegill Steve Gill
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: