Skip to content

bun run check-types has never passed on main — @repo/web reports ~90 errors #1544

Closed

Description

@rajarshidattapy

Severity: Medium (the CI gate added in #1447 is red at HEAD)
Files: apps/web/**, apps/web/tsconfig.json

Reproduction

$ bun install
$ cd apps/web && bunx tsc --noEmit
... 90 errors

Description

#1447 ("fix: add type checks for TypeScript workspaces") wired check-types
into every workspace, but the task fails at HEAD in three packages. This issue
covers @repo/web; see #1542 (@repo/ui) and #1545
(@supermemory/tools) for the other two.

Error breakdown by file (top offenders):

27  components/orbit-memory.tsx
15  ../../packages/memory-graph/src/hooks/use-graph-data.ts
10  components/chat/index.tsx
 9  stores/chat.ts
 5  components/app-experience.tsx
 4  components/memory-graph/graph-card.tsx
 3  components/user-profile-menu.tsx
 ...

Two distinct root causes:

1. noUncheckedIndexedAccess mismatch across package boundaries (most errors).
apps/web/tsconfig.json extends @total-typescript/tsconfig/bundler/dom/app,
which turns on noUncheckedIndexedAccess. packages/memory-graph/tsconfig.json
only sets "strict": true. apps/web compiles the memory-graph source
directly, so packages/memory-graph/src/hooks/use-graph-data.ts type-checks
clean in its own package and fails inside web:

../../packages/memory-graph/src/hooks/use-graph-data.ts(518,46): error TS18048: 'doc' is possibly 'undefined'

These are strictness artifacts, not live crashes (the index is bounded by
docCount), but they make the gate unusable.

2. Genuine defects. See #1541 (res.key on a better-auth result) and
#1548 (@repo/lib/constants does not resolve) — both were surfaced by
this run and are real.

Suggested fix

Align the shared-package tsconfigs with the app's strictness (or stop compiling
package sources across the boundary), fix the two genuine defects, and only then
put check-types in required CI so it stays green.

Activity

  1. linear-code commented on Aug 19, 2026

    @linear-code
  2. added
    bug
    on Aug 28, 2026
  3. MaheshtheDev commented on Sep 8, 2026

    @MaheshtheDev
    Member

    Closing this. The code it refers to was removed in #1651. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions