dependency cycle detected import/no-cycle
问题 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. 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