title: Ionic/cordova Cannot read property 'styleDefault' of undefined
body: <p>I've followed <a href="http://taco.visualstudio.com/en-us/docs/tutorial-ionic/#get-your-app-running-on-windows-10" rel="nofollow noreferrer">this</a> guide and I can't get it to work when running the ripple emulator in Visual Studio. This error shows up:
  <a href="https://i.stack.imgur.com/aywxG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aywxG.png" alt="enter image description here"></a></p>
  
  <p>I havn't changed a thing, just followed the guide.</p>
  
  <p>EDIT:
  My app.js</p>
  
  <pre><code>// Ionic Starter App
  
  // angular.module is a global place for creating, registering and retrieving Angular modules
  // 'starter' is the name of this angular module example (also set in a &lt;body&gt; attribute in index.html)
  // the 2nd parameter is an array of 'requires'
  angular.module('starter', ['ionic'])
  
  .run(function($ionicPlatform) {
    $ionicPlatform.ready(function() {
      if(window.cordova &amp;&amp; window.cordova.plugins.Keyboard) {
        // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
          // for form inputs)
  
              cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
  
        // Don't remove this line unless you know what you are doing. It stops the viewport
        // from snapping when text inputs are focused. Ionic handles this internally for
        // a much nicer keyboard experience.
        cordova.plugins.Keyboard.disableScroll(true);
      }
      if (window.StatusBar) {
        StatusBar.styleDefault();
      }
    });
  })
  </code></pre>