Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circular Dependency Error with steiger.config.js when not in the Root Directory #177

Open
gwbaik9717 opened this issue Feb 19, 2025 · 2 comments

Comments

@gwbaik9717
Copy link

Description

When running Steiger in a monorepo environment using pnpm, placing steiger.config.js under the packages/[PACKAGE_NAME] directory results in the following error:

Error [ERR_REQUIRE_CYCLE_MODULE]: Cannot require() ES Module /~~~~~~~/packages/client/steiger.config.js in a cycle.

The reason for locating steiger.config.js under the package directory instead of the root is that only one package uses Feature-Sliced Design (FSD). However, moving the configuration file to the root resolves the issue, but this approach feels suboptimal since the configuration applies to only one package.

Environment Details

  • Package Manager: pnpm v10.3.0
  • Steiger Version: 0.5.5
  • Node Version: 22.13.1
@illright
Copy link
Member

Interesting. Could you please create a small repro on CodeSandbox or StackBlitz? I want to play around with it because I don't yet understand what might be causing it

@gwbaik9717
Copy link
Author

Sure. I'll let you know when ready!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants