title: Why does firebase.app().storage() tell me that storage is not a function?
body: <p>I'm trying to upload an image to Google Cloud Storage. I'm following along in this guide here:</p>
  
  <p><a href="https://firebase.google.com/docs/storage/web/start" rel="nofollow noreferrer">https://firebase.google.com/docs/storage/web/start</a></p>
  
  <p>It gives an example of how to reference a storage bucket:</p>
  
  <pre><code>var storage = firebase.app().storage("gs://my-custom-bucket");
  </code></pre>
  
  <p>This is for a non-default storage bucket.</p>
  
  <p>It also gives an example of how to reference s storage bucket for a custom app:</p>
  
  <pre><code>var storage = customApp.storage();
  </code></pre>
  
  <p>I'm not using a custom app nor am I using a non-default storage bucket. So I assume the syntax in my case is:</p>
  
  <pre><code>var storage = firebase.app().storage();
  </code></pre>
  
  <p>Yet this doesn't work. It tells me firebase.app().storage is not a function.</p>
  
  <p>This is how I initialize firebase:</p>
  
  <pre><code>const firebase = require('firebase');
  const config = {
          apiKey: "...",
          authDomain: "...",
          databaseURL: "...",
          projectId: "...",
          storageBucket: "...",
          messagingSenderId: "...",
          appId: "...",
          measurementId: "..."
      };
  firebase.initializeApp(config);
  </code></pre>
  
  <p>Why would it say that <code>firebase.app().storage</code> is not a function?</p>