> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# dependency-cycle

> An eager chain of internal imports leads back to the module it started from.

## What it flags

An eager internal dependency path returns to its starting module. One ordered example path is shown per strongly connected component. Deferred loads can still be checked against folder boundaries.

## Inline fix

Turns an import whose names are used only as types into `import type`, which removes that edge from the runtime cycle.

## Example from the editor

```typescript theme={null}
// shared/price.ts
export const lineTotal = (price: number, units: number) => price * units;
```

If a shared calculation caused the cycle, move it to a module that imports neither caller. Each original module can then import lineTotal directly from the shared module.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "dependency-cycle": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.