Error adding cordova platform browser, "Error loading cordova-browser"

Joshua Ohana picture Joshua Ohana · Nov 1, 2016 · Viewed 10.2k times · Source

Other platforms are working fine... but I'm having an issue getting browser platform to work at all.

If I run cordova platform add browser it creates the dir, copies all the files, and things mostly looks like it works right except the console outputs "Error loading cordova-browser".

If I then run prepare or anything I get the same error in yellow

Error loading cordova-browser

If I run cordova requirements... same thing, says Error loading cordova-browser

I'm on Node v6.2.0 and Cordova v6.4.0

--update If I keep removing and adding in the platform things seem to work, ts transpiled and everything updated and moved correctly, and I can run from the www folder and everything serves up right. If I just run prepare or build though, the files in platform/browser do not get updated.

Answer

jcesarmobile picture jcesarmobile · Dec 2, 2016

Cordova CLI 6.5.0 has been released, the error should be fixed

That is just a misleading error message, nothing is really failing and browser platform works just fine. The issue was reported and fixed, but not released yet.