Skip to content

pnpm typecheck fails on main in javascript/ and docs/ with TS2688 for 'yauzl' #930

Description

@langwatch-agent

pnpm typecheck fails on a clean checkout of origin/main in both javascript/ and docs/:

$ cd javascript && pnpm typecheck
> tsc --noEmit
error TS2688: Cannot find type definition file for 'yauzl'.
  The file is in the program because:
    Entry point for implicit type library 'yauzl'
 ELIFECYCLE  Command failed with exit code 2.

Same error in docs/. Verified on an untouched worktree at origin/main with git status --porcelain empty, immediately after pnpm install --frozen-lockfile.

yauzl is not a direct dependency of either workspace. It arrives transitively, and because neither tsconfig sets an explicit types array, TypeScript walks every @types/* in the hoisted node_modules and tries to load @types/yauzl, whose own package is not fully present. The usual fixes are to add an explicit "types": [...] to the tsconfig so the implicit sweep stops, or to add @types/yauzl so the entry point resolves.

pnpm build succeeds in both, so this is typecheck only.

Found while verifying #873. That PR does not cause it and does not fix it; noting here so the failure is not attributed to it on review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions