You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
Description
When running Steiger in a monorepo environment using
pnpm
, placingsteiger.config.js
under thepackages/[PACKAGE_NAME]
directory results in the following error: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
0.5.5
22.13.1
The text was updated successfully, but these errors were encountered: