Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cordovaHTTP issues in development mode with ionic serve #100

Open
cdparra opened this issue Apr 21, 2018 · 3 comments
Open

cordovaHTTP issues in development mode with ionic serve #100

cdparra opened this issue Apr 21, 2018 · 3 comments

Comments

@cdparra
Copy link
Member

cdparra commented Apr 21, 2018

When running ionic serve, a blank page is shown. The problem is two-fold:

  1. The app angular module is loaded manually on deviceready event. This event is not fired in the browser, therefore, the following code does nothing:
    document.addEventListener('deviceready', deviceready, false);

    function deviceready() {
      console.log("deviceready fired!");
      angular.bootstrap(document, ['starter']);
    }

The solution is to use the following, but this does not work in devices:

   angular.element(document).ready(function () {
      if (window.cordova) {
        document.addEventListener('deviceready', function () {
          console.log("Event 'deviceready' fired. Loading angular module...");
          angular.bootstrap(document.body, ['starter']);
        }, false);
      } else {
        console.log("No window.cordova. Loading angular module manually...");
        angular.bootstrap(document.body, ['starter']);
      }
    });
  1. When using the code above to load the module manually, the following error occurs:
Error: [$injector:modulerr] Failed to instantiate module starter due to:
Error: [$injector:modulerr] Failed to instantiate module cordovaHTTP due to:
Error: [$injector:nomod] Module 'cordovaHTTP' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.5.3/$injector/nomod?p0=cordovaHTTP
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:13438:12
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:15404:17
    at ensure (http://localhost:8100/lib/ionic/js/ionic.bundle.js:15328:38)
    at module (http://localhost:8100/lib/ionic/js/ionic.bundle.js:15402:14)
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:17894:22
    at forEach (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13691:20)
    at loadModules (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17878:5)
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:17895:40
    at forEach (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13691:20)
    at loadModules (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17878:5)
http://errors.angularjs.org/1.5.3/$injector/modulerr?p0=cordovaHTTP&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'cordovaHTTP'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.3%2F%24injector%2Fnomod%3Fp0%3DcordovaHTTP%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13438%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15404%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15328%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15402%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17894%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13691%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17878%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17895%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13691%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17878%3A5)
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:13438:12
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:17917:15
    at forEach (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13691:20)
    at loadModules (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17878:5)
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:17895:40
    at forEach (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13691:20)
    at loadModules (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17878:5)
    at createInjector (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17800:19)
    at doBootstrap (http://localhost:8100/lib/ionic/js/ionic.bundle.js:15080:20)
    at Object.bootstrap (http://localhost:8100/lib/ionic/js/ionic.bundle.js:15101:12)
http://errors.angularjs.org/1.5.3/$injector/modulerr?p0=starter&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20cordovaHTTP%20due%20to%3A%0AError%3A%20%5B%24injector%3Anomod%5D%20Module%20'cordovaHTTP'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.3%2F%24injector%2Fnomod%3Fp0%3DcordovaHTTP%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13438%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15404%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15328%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15402%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17894%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13691%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17878%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17895%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13691%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17878%3A5)%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.3%2F%24injector%2Fmodulerr%3Fp0%3DcordovaHTTP%26p1%3DError%253A%2520%255B%2524injector%253Anomod%255D%2520Module%2520'cordovaHTTP'%2520is%2520not%2520available!%2520You%2520either%2520misspelled%2520the%2520module%2520name%2520or%2520forgot%2520to%2520load%2520it.%2520If%2520registering%2520a%2520module%2520ensure%2520that%2520you%2520specify%2520the%2520dependencies%2520as%2520the%2520second%2520argument.%250Ahttp%253A%252F%252Ferrors.angularjs.org%252F1.5.3%252F%2524injector%252Fnomod%253Fp0%253DcordovaHTTP%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A13438%253A12%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A15404%253A17%250A%2520%2520%2520%2520at%2520ensure%2520(http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A15328%253A38)%250A%2520%2520%2520%2520at%2520module%2520(http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A15402%253A14)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A17894%253A22%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A13691%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A17878%253A5)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A17895%253A40%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A13691%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A17878%253A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13438%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17917%3A15%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13691%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17878%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17895%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13691%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17878%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17800%3A19)%0A%20%20%20%20at%20doBootstrap%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15080%3A20)%0A%20%20%20%20at%20Object.bootstrap%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15101%3A12)
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:13438:12
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:15404:17
    at ensure (http://localhost:8100/lib/ionic/js/ionic.bundle.js:15328:38)
    at module (http://localhost:8100/lib/ionic/js/ionic.bundle.js:15402:14)
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:17894:22
    at forEach (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13691:20)
    at loadModules (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17878:5)
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:17895:40
    at forEach (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13691:20)
    at loadModules (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17878:5)
http://errors.angularjs.org/1.5.3/$injector/modulerr?p0=cordovaHTTP&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'cordovaHTTP'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.3%2F%24injector%2Fnomod%3Fp0%3DcordovaHTTP%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13438%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15404%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15328%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15402%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17894%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13691%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17878%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17895%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13691%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17878%3A5)
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:13438:12
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:17917:15
    at forEach (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13691:20)
    at loadModules (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17878:5)
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:17895:40
    at forEach (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13691:20)
    at loadModules (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17878:5)
    at createInjector (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17800:19)
    at doBootstrap (http://localhost:8100/lib/ionic/js/ionic.bundle.js:15080:20)
    at Object.bootstrap (http://localhost:8100/lib/ionic/js/ionic.bundle.js:15101:12)
http://errors.angularjs.org/1.5.3/$injector/modulerr?p0=starter&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20cordovaHTTP%20due%20to%3A%0AError%3A%20%5B%24injector%3Anomod%5D%20Module%20'cordovaHTTP'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.3%2F%24injector%2Fnomod%3Fp0%3DcordovaHTTP%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13438%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15404%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15328%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15402%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17894%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13691%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17878%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17895%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13691%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17878%3A5)%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.3%2F%24injector%2Fmodulerr%3Fp0%3DcordovaHTTP%26p1%3DError%253A%2520%255B%2524injector%253Anomod%255D%2520Module%2520'cordovaHTTP'%2520is%2520not%2520available!%2520You%2520either%2520misspelled%2520the%2520module%2520name%2520or%2520forgot%2520to%2520load%2520it.%2520If%2520registering%2520a%2520module%2520ensure%2520that%2520you%2520specify%2520the%2520dependencies%2520as%2520the%2520second%2520argument.%250Ahttp%253A%252F%252Ferrors.angularjs.org%252F1.5.3%252F%2524injector%252Fnomod%253Fp0%253DcordovaHTTP%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A13438%253A12%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A15404%253A17%250A%2520%2520%2520%2520at%2520ensure%2520(http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A15328%253A38)%250A%2520%2520%2520%2520at%2520module%2520(http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A15402%253A14)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A17894%253A22%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A13691%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A17878%253A5)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A17895%253A40%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A13691%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A8100%252Flib%252Fionic%252Fjs%252Fionic.bundle.js%253A17878%253A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13438%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17917%3A15%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13691%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17878%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17895%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13691%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17878%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A17800%3A19)%0A%20%20%20%20at%20doBootstrap%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15080%3A20)%0A%20%20%20%20at%20Object.bootstrap%20(http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A15101%3A12)
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:13438:12
    at http://localhost:8100/lib/ionic/js/ionic.bundle.js:17917:15
    at forEach (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13691:20)
    at loadModules (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17878:5)
    at createInjector (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17800:19)
    at doBootstrap (http://localhost:8100/lib/ionic/js/ionic.bundle.js:15080:20)
    at Object.bootstrap (http://localhost:8100/lib/ionic/js/ionic.bundle.js:15101:12)
    at http://localhost:8100/:119:17
    at HTMLDocument.trigger (http://localhost:8100/lib/ionic/js/ionic.bundle.js:16497:7)
    at defaultHandlerWrapper (http://localhost:8100/lib/ionic/js/ionic.bundle.js:16787:11)
@cdparra
Copy link
Member Author

cdparra commented Apr 21, 2018

According to the cordovaHTTP changelog, browser support is added in version 1.11

@cdparra
Copy link
Member Author

cdparra commented Apr 21, 2018

Event after trying
<plugin name="cordova-plugin-advanced-http" spec="1.11.1" />

the app fails in browser

@cdparra
Copy link
Member Author

cdparra commented Apr 21, 2018

Potential fix: use cordovaHTTP via ionic native wrapper rather than injecting the cordovaHTTP module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant