Detect circular dependencies in your Next.js app
Add the plugin to your next.config.mjs file like so:
import nextCircularDependency from '@playt/next-circular-dependency'
/** @type {import('next').NextConfig} */
let config = {}
// the options of the webpack plugin
// Ref.: https://github.com/aackerman/circular-dependency-plugin
const options = {}
config = nextCircularDependency(options)(config)
export default confignpm i -D @playt/next-circular-dependencyMIT