79824122

Date: 2025-11-19 06:32:17
Score: 0.5
Natty:
Report link

In PNPM workspaces, a package is only symlinked into node_modules if at least one workspace project depends on it.

Your package @repo/typescript-config exists in packages/, but no app explicitly lists it as a dependency — so PNPM simply doesn’t link it.

Fix

Add the shared TypeScript config package as a dependency inside the consuming app:

apps/http-server/package.json
{
  "devDependencies": {
    "typescript": "latest",
    "@repo/typescript-config": "workspace:*"
  }
}

Then reinstall workspace dependencies:

pnpm -w install

Now PNPM will create:

node_modules/@repo/typescript-config -> ../../packages/typescript-config

And TypeScript successfully resolves:

"extends": "@repo/typescript-config/backends.json"
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Saurabh kumar Sahu