TS2724 "has no exported member" in a git worktree: a symlinked node_modules typechecks the main checkout's source
In a git worktree whose node_modules was a symlink to the main checkout, tsc reported TS2724 "has no exported member" for a function the worktree exported. pnpm links workspace packages with relative symlinks, and those resolve inside the main checkout, so typecheck and tests ran against the old source of every workspace package.
·4 mins