title: Linking react and express
body: <p>I am stuck trying to link express with react.</p>
  
  <p>here is my webpack file</p>
  
  <pre class="lang-js prettyprint-override"><code>var debug = process.env.NODE_ENV !== "production";
  var webpack = require('webpack');
  var path = require('path');
  
  module.exports = {
    context: path.join(__dirname, "src"),
    devtool: debug ? "inline-sourcemap" : null,
    entry: "./js/app.js",
    module: {
      loaders: [
        {
          test: /\.jsx?$/,
          exclude: /(node_modules|bower_components)/,
          loader: 'babel-loader',
          query: {
            presets: ['react', 'es2015', 'stage-0'],
            plugins: ['react-html-attrs', 'transform-class-properties', 'transform-decorators-legacy'],
          }
        },
        { test: /\.(png|jpg)$/, loader: 'url-loader?limit=8192' }
      ]
    },
    output: {
      path: __dirname + "/src/",
      filename: "client.min.js"
    },
    plugins: debug ? [] : [
      new webpack.optimize.DedupePlugin(),
      new webpack.optimize.OccurenceOrderPlugin(),
      new webpack.optimize.UglifyJsPlugin({ mangle: false, sourcemap: false }),
    ],
  };
  </code></pre>
  
  <p>This is the js/app.js file</p>
  
  <pre class="lang-js prettyprint-override"><code>var express = require('express')
  var db = require('./db')
  
  var app = express();
  app.use(express.static('public'));
  
  app.get('/all', function(req, res) {
    var collection = db.get().collection('comments')
  
    collection.find().toArray(function(err, docs) {
      res.render('comments', {comments: docs})
    })
  })
  
  app.get('/recent', function(req, res) {
    var collection = db.get().collection('comments')
  
    collection.find().sort({'date': -1}).limit(100).toArray(function(err, docs) {
      res.render('comments', {comments: docs})
    })
  })
  
  app.get('/', function(req,res) {
    res.send('../index.html');
  })
  </code></pre>
  
  <p>The app.js links to index.html for a '/' path. The index.html looks something like this</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
    &lt;meta name="description" content=""&gt;
    &lt;meta name="author" content=""&gt;
    &lt;title&gt;React&lt;/title&gt;
    &lt;!-- Bootstrap Core CSS --&gt;
    &lt;link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/cerulean/bootstrap.min.css" rel="stylesheet"&gt;
    &lt;link href="txtstyle.css" rel="stylesheet" type="text/css" /&gt;
    &lt;!-- Custom Fonts --&gt;
    &lt;link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;div id="app"&gt;&lt;/div&gt;
    &lt;script src="client.min.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>I am running my script by <code>webpack &amp;&amp; node ./src/js/app.js</code>. I can not however get the index.html to run. On going to localhost:3000 I get a <code>'../index.html'</code> text. </p>
  
  <p>I have no idea as in how to link these two things (express and react) together. With what modifications on my code can I get them to work together? </p>
  
  <p>Also I get this long error and warning messages from the above command</p>
  
  <pre><code>WARNING in ../~/require_optional/package.json
  Module parse failed: /Users/lpuser/Projects/SlantedLines/node_modules/require_optional/package.json Unexpected token (2:9)
  You may need an appropriate loader to handle this file type.
  SyntaxError: Unexpected token (2:9)
      at Parser.pp$4.raise (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
      at Parser.pp.unexpected (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
      at Parser.pp.semicolon (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:581:61)
      at Parser.pp$1.parseExpressionStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:966:10)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:730:24)
      at Parser.pp$1.parseBlock (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:981:25)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:709:33)
      at Parser.pp$1.parseTopLevel (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:638:25)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:516:17)
      at Object.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Parser.js:902:15)
      at NormalModule.&lt;anonymous&gt; (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModule.js:104:16)
      at NormalModule.onModuleBuild (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
      at nextLoader (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
      at Storage.provide (/Users/lpuser/Projects/SlantedLines/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:52:20)
      at CachedInputFileSystem.readFile (/Users/lpuser/Projects/SlantedLines/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:140:24)
      at NormalModule.onLoadPitchDone (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:255:7)
      at NormalModule.loadPitch (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:182:27)
      at NormalModule.doBuild (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:241:4)
      at NormalModule.build (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModule.js:84:14)
      at Compilation.buildModule (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Compilation.js:126:9)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Compilation.js:309:10
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModuleFactory.js:58:13
      at NormalModuleFactory.applyPluginsAsyncWaterfall (/Users/lpuser/Projects/SlantedLines/node_modules/tapable/lib/Tapable.js:75:69)
      at onDoneResolving (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModuleFactory.js:38:11)
      at onDoneResolving (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModuleFactory.js:121:6)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModuleFactory.js:116:7
      at /Users/lpuser/Projects/SlantedLines/node_modules/async/lib/async.js:726:13
      at /Users/lpuser/Projects/SlantedLines/node_modules/async/lib/async.js:52:16
   @ ../~/require_optional ^\.\/.*$
  
  WARNING in ../~/require_optional/LICENSE
  Module parse failed: /Users/lpuser/Projects/SlantedLines/node_modules/require_optional/LICENSE Unexpected token (1:40)
  You may need an appropriate loader to handle this file type.
  SyntaxError: Unexpected token (1:40)
      at Parser.pp$4.raise (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
      at Parser.pp.unexpected (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
      at Parser.pp.semicolon (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:581:61)
      at Parser.pp$1.parseExpressionStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:966:10)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:730:24)
      at Parser.pp$1.parseTopLevel (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:638:25)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:516:17)
      at Object.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Parser.js:902:15)
      at NormalModule.&lt;anonymous&gt; (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModule.js:104:16)
      at NormalModule.onModuleBuild (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
      at nextLoader (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
      at Storage.finished (/Users/lpuser/Projects/SlantedLines/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
      at /Users/lpuser/Projects/SlantedLines/node_modules/graceful-fs/graceful-fs.js:78:16
      at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:415:3)
   @ ../~/require_optional ^\.\/.*$
  
  WARNING in ../~/require_optional/README.md
  Module parse failed: /Users/lpuser/Projects/SlantedLines/node_modules/require_optional/README.md Unexpected character '#' (1:0)
  You may need an appropriate loader to handle this file type.
  SyntaxError: Unexpected character '#' (1:0)
      at Parser.pp$4.raise (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
      at Parser.pp$7.getTokenFromCode (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:2756:10)
      at Parser.pp$7.readToken (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:2477:17)
      at Parser.pp$7.nextToken (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:2468:15)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:515:10)
      at Object.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Parser.js:902:15)
      at NormalModule.&lt;anonymous&gt; (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModule.js:104:16)
      at NormalModule.onModuleBuild (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
      at nextLoader (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
      at Storage.finished (/Users/lpuser/Projects/SlantedLines/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
      at /Users/lpuser/Projects/SlantedLines/node_modules/graceful-fs/graceful-fs.js:78:16
      at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:415:3)
   @ ../~/require_optional ^\.\/.*$
  
  ERROR in ../~/express/lib/request.js
  Module not found: Error: Cannot resolve module 'net' in /Users/lpuser/Projects/SlantedLines/node_modules/express/lib
   @ ../~/express/lib/request.js 18:11-25
  
  ERROR in ../~/mongodb/lib/gridfs/grid_store.js
  Module not found: Error: Cannot resolve module 'fs' in /Users/lpuser/Projects/SlantedLines/node_modules/mongodb/lib/gridfs
   @ ../~/mongodb/lib/gridfs/grid_store.js 42:7-20
  
  ERROR in ../~/mongodb/package.json
  Module parse failed: /Users/lpuser/Projects/SlantedLines/node_modules/mongodb/package.json Unexpected token (2:9)
  You may need an appropriate loader to handle this file type.
  SyntaxError: Unexpected token (2:9)
      at Parser.pp$4.raise (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
      at Parser.pp.unexpected (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
      at Parser.pp.semicolon (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:581:61)
      at Parser.pp$1.parseExpressionStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:966:10)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:730:24)
      at Parser.pp$1.parseBlock (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:981:25)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:709:33)
      at Parser.pp$1.parseTopLevel (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:638:25)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:516:17)
      at Object.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Parser.js:902:15)
      at NormalModule.&lt;anonymous&gt; (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModule.js:104:16)
      at NormalModule.onModuleBuild (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
      at nextLoader (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
      at Storage.provide (/Users/lpuser/Projects/SlantedLines/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:52:20)
      at CachedInputFileSystem.readFile (/Users/lpuser/Projects/SlantedLines/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:140:24)
      at NormalModule.onLoadPitchDone (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:255:7)
      at NormalModule.loadPitch (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:182:27)
      at NormalModule.doBuild (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:241:4)
      at NormalModule.build (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModule.js:84:14)
      at Compilation.buildModule (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Compilation.js:126:9)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Compilation.js:309:10
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModuleFactory.js:58:13
      at NormalModuleFactory.applyPluginsAsyncWaterfall (/Users/lpuser/Projects/SlantedLines/node_modules/tapable/lib/Tapable.js:75:69)
      at onDoneResolving (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModuleFactory.js:38:11)
      at onDoneResolving (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModuleFactory.js:121:6)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModuleFactory.js:116:7
      at /Users/lpuser/Projects/SlantedLines/node_modules/async/lib/async.js:726:13
      at /Users/lpuser/Projects/SlantedLines/node_modules/async/lib/async.js:52:16
   @ ../~/mongodb/lib/server.js 22:20-59
  
  ERROR in ../~/express/lib/view.js
  Module not found: Error: Cannot resolve module 'fs' in /Users/lpuser/Projects/SlantedLines/node_modules/express/lib
   @ ../~/express/lib/view.js 18:9-22
  
  ERROR in ../~/send/index.js
  Module not found: Error: Cannot resolve module 'fs' in /Users/lpuser/Projects/SlantedLines/node_modules/send
   @ ../~/send/index.js 24:9-22
  
  ERROR in ../~/mongodb-core/lib/connection/connection.js
  Module not found: Error: Cannot resolve module 'net' in /Users/lpuser/Projects/SlantedLines/node_modules/mongodb-core/lib/connection
   @ ../~/mongodb-core/lib/connection/connection.js 5:10-24
  
  ERROR in ../~/mongodb-core/lib/connection/connection.js
  Module not found: Error: Cannot resolve module 'tls' in /Users/lpuser/Projects/SlantedLines/node_modules/mongodb-core/lib/connection
   @ ../~/mongodb-core/lib/connection/connection.js 6:10-24
  
  ERROR in ../~/statuses/codes.json
  Module parse failed: /Users/lpuser/Projects/SlantedLines/node_modules/statuses/codes.json Unexpected token (2:7)
  You may need an appropriate loader to handle this file type.
  SyntaxError: Unexpected token (2:7)
      at Parser.pp$4.raise (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
      at Parser.pp.unexpected (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
      at Parser.pp.semicolon (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:581:61)
      at Parser.pp$1.parseExpressionStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:966:10)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:730:24)
      at Parser.pp$1.parseBlock (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:981:25)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:709:33)
      at Parser.pp$1.parseTopLevel (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:638:25)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:516:17)
      at Object.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Parser.js:902:15)
      at NormalModule.&lt;anonymous&gt; (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModule.js:104:16)
      at NormalModule.onModuleBuild (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
      at nextLoader (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
      at Storage.finished (/Users/lpuser/Projects/SlantedLines/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
      at /Users/lpuser/Projects/SlantedLines/node_modules/graceful-fs/graceful-fs.js:78:16
      at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:415:3)
   @ ../~/statuses/index.js 15:12-35
  
  ERROR in ../~/etag/index.js
  Module not found: Error: Cannot resolve module 'fs' in /Users/lpuser/Projects/SlantedLines/node_modules/etag
   @ ../~/etag/index.js 22:12-25
  
  ERROR in ../~/mongodb-core/package.json
  Module parse failed: /Users/lpuser/Projects/SlantedLines/node_modules/mongodb-core/package.json Unexpected token (2:9)
  You may need an appropriate loader to handle this file type.
  SyntaxError: Unexpected token (2:9)
      at Parser.pp$4.raise (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
      at Parser.pp.unexpected (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
      at Parser.pp.semicolon (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:581:61)
      at Parser.pp$1.parseExpressionStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:966:10)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:730:24)
      at Parser.pp$1.parseBlock (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:981:25)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:709:33)
      at Parser.pp$1.parseTopLevel (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:638:25)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:516:17)
      at Object.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Parser.js:902:15)
      at NormalModule.&lt;anonymous&gt; (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModule.js:104:16)
      at NormalModule.onModuleBuild (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
      at nextLoader (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
      at Storage.provide (/Users/lpuser/Projects/SlantedLines/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:52:20)
      at CachedInputFileSystem.readFile (/Users/lpuser/Projects/SlantedLines/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:140:24)
      at NormalModule.onLoadPitchDone (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:255:7)
      at NormalModule.loadPitch (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:182:27)
      at NormalModule.doBuild (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:241:4)
      at NormalModule.build (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModule.js:84:14)
      at Compilation.buildModule (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Compilation.js:126:9)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Compilation.js:309:10
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModuleFactory.js:58:13
      at NormalModuleFactory.applyPluginsAsyncWaterfall (/Users/lpuser/Projects/SlantedLines/node_modules/tapable/lib/Tapable.js:75:69)
      at onDoneResolving (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModuleFactory.js:38:11)
      at onDoneResolving (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModuleFactory.js:121:6)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModuleFactory.js:116:7
      at /Users/lpuser/Projects/SlantedLines/node_modules/async/lib/async.js:726:13
      at /Users/lpuser/Projects/SlantedLines/node_modules/async/lib/async.js:52:16
   @ ../~/mongodb-core/lib/topologies/shared.js 17:20-62
  
  ERROR in ../~/destroy/index.js
  Module not found: Error: Cannot resolve module 'fs' in /Users/lpuser/Projects/SlantedLines/node_modules/destroy
   @ ../~/destroy/index.js 14:17-30
  
  ERROR in ../~/require_optional/index.js
  Module not found: Error: Cannot resolve module 'fs' in /Users/lpuser/Projects/SlantedLines/node_modules/require_optional
   @ ../~/require_optional/index.js 2:7-20
  
  ERROR in ../~/mime/mime.js
  Module not found: Error: Cannot resolve module 'fs' in /Users/lpuser/Projects/SlantedLines/node_modules/mime
   @ ../~/mime/mime.js 2:9-22
  
  ERROR in ../~/mime/types.json
  Module parse failed: /Users/lpuser/Projects/SlantedLines/node_modules/mime/types.json Unexpected token (1:27)
  You may need an appropriate loader to handle this file type.
  SyntaxError: Unexpected token (1:27)
      at Parser.pp$4.raise (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
      at Parser.pp.unexpected (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
      at Parser.pp.semicolon (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:581:61)
      at Parser.pp$1.parseExpressionStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:966:10)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:730:24)
      at Parser.pp$1.parseBlock (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:981:25)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:709:33)
      at Parser.pp$1.parseTopLevel (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:638:25)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:516:17)
      at Object.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Parser.js:902:15)
      at NormalModule.&lt;anonymous&gt; (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModule.js:104:16)
      at NormalModule.onModuleBuild (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
      at nextLoader (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
      at Storage.finished (/Users/lpuser/Projects/SlantedLines/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
      at /Users/lpuser/Projects/SlantedLines/node_modules/graceful-fs/graceful-fs.js:78:16
      at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:415:3)
   @ ../~/mime/mime.js 87:12-35
  
  ERROR in ../~/resolve-from/index.js
  Module not found: Error: Cannot resolve module 'module' in /Users/lpuser/Projects/SlantedLines/node_modules/resolve-from
   @ ../~/resolve-from/index.js 3:13-30
  
  ERROR in ../~/mime-db/db.json
  Module parse failed: /Users/lpuser/Projects/SlantedLines/node_modules/mime-db/db.json Unexpected token (2:40)
  You may need an appropriate loader to handle this file type.
  SyntaxError: Unexpected token (2:40)
      at Parser.pp$4.raise (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
      at Parser.pp.unexpected (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
      at Parser.pp.semicolon (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:581:61)
      at Parser.pp$1.parseExpressionStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:966:10)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:730:24)
      at Parser.pp$1.parseBlock (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:981:25)
      at Parser.pp$1.parseStatement (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:709:33)
      at Parser.pp$1.parseTopLevel (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:638:25)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:516:17)
      at Object.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39)
      at Parser.parse (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/Parser.js:902:15)
      at NormalModule.&lt;anonymous&gt; (/Users/lpuser/Projects/SlantedLines/node_modules/webpack/lib/NormalModule.js:104:16)
      at NormalModule.onModuleBuild (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
      at nextLoader (/Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
      at /Users/lpuser/Projects/SlantedLines/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
      at Storage.finished (/Users/lpuser/Projects/SlantedLines/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
      at /Users/lpuser/Projects/SlantedLines/node_modules/graceful-fs/graceful-fs.js:78:16
      at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:415:3)
   @ ../~/mime-db/index.js 11:17-37
  Express server is up on port 3000
  </code></pre>