title: dependency cycle detected import/no-cycle
body: <p>I am trying to set up API endpoints in ES6. In my main server file, I tried to import the router module but I get the error "dependency cycle detected import/no-cycle". Please find my code below for clearance and assistance.</p>
  
  <pre><code>import express from 'express';
  
  import bodyParser from 'body-parser';
  
  import router from './routes/routes';
  
  const app = express();
  const PORT = process.env.PORT || 8080;
  
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({ extended: true }));
  // app.use(routes);
  
  app.use('/api/v1', router);
  
  const run = () =&gt; console.log('way to go server!');
  
  app.listen(PORT, run);
  export default app;
  </code></pre>