title: Module not found: Can't resolve 'dns' in pg/lib
body: <p>I did create-react-app and also installed sequelize and pg. But when I do npm start, I get the following error - </p>
  
  <hr>
  
  <p>./node_modules/pg/lib/connection-parameters.js</p>
  
  <h2>Module not found: Can't resolve 'dns' in '/Users/vedant/Web Dev/device_psql/node_modules/pg/lib'</h2>
  
  <p>Here is the App.js file - </p>
  
  <hr>
  
  <pre><code>import React, { Component } from 'react';
  const Sequelize = require('sequelize');
  const sequelize = new Sequelize('postgres', 'postgres', 'password', {
  host: 'localhost',
  dialect: 'postgres',
  
  pool: {
    max: 5,
    min: 0,
    acquire: 30000,
    idle: 10000
  },
  
  // http://docs.sequelizejs.com/manual/tutorial/querying.html#operators
  operatorsAliases: false
  });
  
  class App extends Component {
  render() {
    return (
      &lt;div &gt;
        &lt;p&gt;Test&lt;/p&gt;
      &lt;/div&gt;
    );
  }
  }
  
  export default App;
  </code></pre>
  
  <hr>
  
  <p>Also, in the package.json file, I have sequelize and pg. What could be the problem? I have tried to delete the node_modules folder and doing npm install, but no luck.</p>
  
  <p>Thanks in advance.</p>