title: Node.js v6.2.0 class extends is not a function error?
body: <p>So I'm trying to extend a class in node js and the compiler keeps returning the following error:</p>
  
  <pre><code>TypeError: Class extends value #&lt;Object&gt; is not a function or null
  </code></pre>
  
  <p>I checked that I was exporting the class correctly and I am, any ideas? I'll post my code below:</p>
  
  <h3>/handler/venue.js:</h3>
  
  <pre><code>var VenueViews = require('../views/venue'); // If I remove this the error will dissapear (as expected)
  class Venue {
    constructor(data) {
      this.setDataHere = data;
    }
  
    main () {
     var View = new VenueViews(); // This doesn't run
    }
  
  
  }
  
  module.exports = Venue;
  </code></pre>
  
  <h3>/views/venue.js:</h3>
  
  <pre><code>var Venue = require('../handlers/venue');
  console.log  (Venue) // This returns {} ???
  
  class VenueViews extends Venue {
    constructor() {
      super();
    }
  }
  
  module.exports = VenueViews;
  </code></pre>
  
  <p>I know that node supports these <code>es6 features</code>, so I'm unsure why they aren't working?</p>
  
  <h3>Edit:</h3>
  
  <p>I'm not sure if this is suppose to happen but, when I log my <code>Venue</code> require it returns an empty object <code>{}</code>.</p>
  
  <pre><code>console.log  (Venue) // This returns {} ???
  </code></pre>