Skip to content

fix(web): support typescript 6 typecheck for node types and css imports - #1

Merged
jaysoo merged 1 commit into
mainfrom
fix/typescript-6-typecheck
Jul 17, 2026
Merged

fix(web): support typescript 6 typecheck for node types and css imports#1
jaysoo merged 1 commit into
mainfrom
fix/typescript-6-typecheck

Conversation

@jaysoo

@jaysoo jaysoo commented Jul 17, 2026

Copy link
Copy Markdown
Member

Current Behavior

  • web-e2e:typecheck fails: Cannot find name 'process' / ImportMeta.dirname missing. TS 6 no longer auto-includes @types/node when types is unset.
  • web:build fails TS2882 on side-effect import of './global.css'. Next's bundled types only declare *.module.css.

Expected Behavior

  • web-e2e/tsconfig.json sets types: ["node"].
  • web/src/global.d.ts declares *.css (more-specific *.module.css still wins).

- web-e2e:typecheck fails: `Cannot find name 'process'` / `ImportMeta.dirname`
  missing. TS 6 no longer auto-includes @types/node when `types` is unset.
- web:build fails TS2882 on side-effect import of './global.css'. Next's
  bundled types only declare *.module.css.

- web-e2e/tsconfig.json sets `types: ["node"]`.
- web/src/global.d.ts declares `*.css` (more-specific *.module.css still wins).
@jaysoo
jaysoo force-pushed the fix/typescript-6-typecheck branch from d76ceeb to dec4526 Compare July 17, 2026 17:35
@jaysoo
jaysoo merged commit e8a6867 into main Jul 17, 2026
1 check passed
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.

1 participant