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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • browser@5.0.0
    • 5.0.1
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: