Skip to content

fix: restore node/vite type resolution under TypeScript 7 - #1686

Merged
brillout merged 1 commit into
brillout/devfrom
claude/ci-fix-hvvzpy
Aug 24, 2026
Merged

fix: restore node/vite type resolution under TypeScript 7#1686
brillout merged 1 commit into
brillout/devfrom
claude/ci-fix-hvvzpy

Conversation

@brillout

Copy link
Copy Markdown
Contributor

Summary

  • Fixes CI failures on chore: typescript@^7.0.2 #1684 (chore: typescript@^7.0.2).
  • TypeScript 7 no longer auto-includes @types/node the way 5.x did (build failed with Cannot find name 'process'/'Buffer'/'node:path' etc. across src/dashboard/*), and it now errors (TS2882) on side-effect imports — like CSS files — that only resolve through ambient module declarations shipped by vite/client.
  • Adds explicit "types": ["node"] to the shared tsconfig.base.json, and "vite/client" to the two Vite-based tsconfigs (packages/framework/dashboard/tsconfig.json, packages/the-framework.ai/tsconfig.json) so tsc keeps resolving Node globals and CSS imports.
  • Drops baseUrl from packages/framework/dashboard/tsconfig.json — TS7 removed support for it (TS5083), and nothing in the dashboard relies on it (no non-relative imports depend on baseUrl resolution).

Test plan

  • pnpm install
  • pnpm build
  • pnpm typecheck
  • pnpm test

This branch targets brillout/dev (the head of #1684) so merging it directly resolves that PR's CI failure.


Generated by Claude Code

TypeScript 7 no longer auto-includes @types packages the way 5.x did,
and it now errors on side-effect imports (e.g. CSS) that resolve only
through ambient module declarations shipped by vite/client. Declare
"types" explicitly so tsc keeps finding @types/node and vite/client.

Also drops the now-unused, no-longer-supported `baseUrl` compiler
option (TS7 removed it) from the dashboard tsconfig.
@brillout
brillout merged commit dad1635 into brillout/dev Aug 24, 2026
2 checks passed
@brillout
brillout deleted the claude/ci-fix-hvvzpy branch August 24, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants