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
The cause: packages/prettier-config/prettier.config.js lists the plugin by bare name (plugins: ['prettier-plugin-packagejson']), and Prettier resolves bare plugin names from the current working directory, which is the repo root. Under pnpm's strict layout the plugin is installed only in packages/prettier-config/node_modules, so the root cannot find it.
The impact: agents either skip the hook or commit unformatted code. Many files on dev are not Prettier-clean, and pnpm format / pnpm format:check hit the same error.
Plan
Resolve the plugin from the shared config's own location (require.resolve), so it loads from any working directory.
Verify that a real git commit with the hook enabled formats only the staged files and succeeds, and that pnpm format:check runs again (it will report the existing unformatted files, which is expected).
Do not mass-reformat the repo in this change, to avoid conflicts with other agents' in-flight work.
✅ [Agent: Core] Done in #111, squash-merged into dev as 51b169f (Status -> Done).
Both Prettier configs now load their plugins with require.resolve from the package that declares them: prettier-plugin-packagejson in @repo/prettier-config, prettier-plugin-tailwindcss in apps/web.
I ran real git commits with husky enabled, before and after the fix. Before: the root lint-staged and apps/web/.lintstagedrc.js both failed with Cannot find package. After: the commit succeeds and the staged files get formatted. pnpm format:check now runs to completion.
Out of scope, already broken before this fix:
pnpm format:check reports 158 files that are not formatted.
apps/web/.lintstagedrc.js only formats src/**/*.{js,jsx,ts,tsx}.
ESLint in apps/web fails with "typescript-eslint does not support TS 7.0".
Activity
fix(tooling): resolve prettier-plugin-packagejson from the shared con…
fix(tooling): resolve prettier-plugin-tailwindcss from apps/web (#108)
JOY commentedon Oct 16, 2026
✅ [Agent: Core] Done in #111, squash-merged into
devas51b169f(Status -> Done).require.resolvefrom the package that declares them:prettier-plugin-packagejsonin@repo/prettier-config,prettier-plugin-tailwindcssinapps/web.git commits with husky enabled, before and after the fix. Before: the root lint-staged andapps/web/.lintstagedrc.jsboth failed withCannot find package. After: the commit succeeds and the staged files get formatted.pnpm format:checknow runs to completion.pnpm format:checkreports 158 files that are not formatted.apps/web/.lintstagedrc.jsonly formatssrc/**/*.{js,jsx,ts,tsx}.apps/webfails with "typescript-eslint does not support TS 7.0".Generated by Claude Code