You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/08/31 20:40:25 UTC

[GitHub] [cordova-browser] GeorgesDick opened a new issue #82: url.URL is not a constructor

GeorgesDick opened a new issue #82: url.URL is not a constructor
URL: https://github.com/apache/cordova-browser/issues/82
 
 
   # Bug Report
   
   ## Problem
   When trying to run (cordova run browser), got an error message "url.URL is not a constructor"
   
   ### What is expected to happen?
   cordova run browser is supposed to run the app in a browser window
   
   
   ### What does actually happen?
   Error message "url.URL is not a constructor"
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   Found a work around:
   in file platforms/browser/cordova/lib/run.js change line 56 (or 57) form:
   var projectUrl = (new url.URL(`http://localhost:${server.port}/${startPage}`)).href;
   to
   var projectUrl = `http://localhost:${server.port}/${startPage}`;
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   Windows 10
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org