title: mongoose.connect undefined is not a function
body: <p>I am trying to make a basic mongoose connection in c9.io using node.js, React, ReactRouter and webpack. I have my mongodb established and listening, but when I try to require mongoose and start a connection, it fails and tells me "undefined is not a function", pointing me to "mongoose.connect". Here is my code. I am not sure what I am doing wrong. </p>
  
  <pre><code>var mongoose = require('mongoose');
  mongoose.connect('mongodb://localhost:27017');//this returns "undefined is not a function" and fails
  var Schema = mongoose.Schema;
  
  var postSchema = new Schema({
      title: String,
      description: String,
      author: String,
      content: String
  });
  
  var Post = mongoose.model('Post', postSchema);
  
  module.exports = Post;
  </code></pre>
  
  <p>Any thoughts? I am wondering if it is a problem with webpack, since I'm using React-router instead of something server-side.</p>