title: How can I use forwardRef() for circular dependency?
body: <p>How can I use forwardRef() for circular dependency? I did the same as the documentation but didn't work it gives me this error:
  The module at index [1] of the GroupModule &quot;imports&quot; array is undefined.</p>
  <p>Potential causes:</p>
  <ul>
  <li>A circular dependency between modules. Use forwardRef() to avoid it. Read more: <a href="https://docs.nestjs.com/fundamentals/circular-dependency" rel="nofollow noreferrer">https://docs.nestjs.com/fundamentals/circular-dependency</a></li>
  <li>The module at index [1] is of type &quot;undefined&quot;. Check your import statements and the type of the module.</li>
  </ul>
  <p>Scope [AppModule -&gt; EntityModule -&gt; BranchModule] +91ms</p>