title: Accessing non-existent property of module exports inside circular dependency
body: <p>i'm having an circular dependency warnings in my node project that caused by index.js file that i wrote to combine some exports, the file look like this: path: utils/<strong>index.js</strong>.</p>
  <pre><code>const mysql = require('./mysqlDB');
  const logger = require('./logger');
  const ServerError = require('./ServerError');
  
  module.exports = {
      mysql,
      logger,
      ServerError
  }
  </code></pre>
  <p>so I can import those in other files like this (lets said its called <strong>user.js</strong>):</p>
  <pre><code>const { logger, mysql, ServerError } = require('../utils');
  </code></pre>
  <p>so now if im requring <strong>user.js</strong> in another file thats include also things from utils.js
  im getting the circular dependency warnings and errors after that...</p>
  <p>when i deleted the <strong>index.js</strong> file that I wrote and requried the utils directly int my <strong>user.js</strong> file the warnings gone.
  I'm not sure what I do wrong.
  Thanks.</p>