title: How to fix Uncaught TypeError: Cannot read property 'prototype' of undefined?
body: <p>I have a little problem. I'm using backbone.js. I wrote this code like in example:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function () {
      window.App = {
          Views: {},
          Models: {},
          Collections: {}
      }
  
      App.Collections.Users = Backbone.Collection.extend({
           model: App.Models.User,
           url: 'service'
      });
      App.Models.User = Backbone.Model.extend({});
  
      App.Views.App = Backbone.View.extend({
           initialize: function() {
               console.log( this.collection.toJSON() );
           }
      });
  
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Than I started server and in browser console type this:</p>
  
  <pre><code>var x =new App.Collections.Users();
  x.fetch()
  </code></pre>
  
  <p>And this follows to error: <code>Uncaught TypeError: Cannot read property 'prototype' of undefined</code>. But data is present in response. Details in picture. How to fix this?
  Thanks for you answers.<img src="https://i.stack.imgur.com/HiE4n.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/gcE3s.png" alt="enter image description here"></p>