lloyAlloy on GitHub
circular_import
Docs

circular_import

Updated

Two files that import each other.

A cycle of import lines: Luau's require of a module that is still loading is an error at runtime, and the first file to load decides which one fails. Move the shared part into a third module that both import. An import type, or an import in a test, requires nothing in the build, so it closes no cycle. alloy flux reports it; a single-file lint cannot see it.

Set its level in the [lint] table of alloy.toml, or for one file with --@alloy-lint.