BugFixer
SearchAboutVisionContact
Admin
SearchAboutVisionContactAdmin

Tagged: tsconfig

Typescript

TS2688 / global type errors after adding "types": [] to tsconfig.json

Setting `"types": []` (now common with TypeScript 6.0+'s stricter defaults) stops TypeScript from automatically including every @types/* package in node_modules as a global — which also silently drops packages like @types/node that your code actually relies on globally (like `process`, `Buffer`). List the global type packages you need explicitly in the `types` array.

Draft·
Typescript

Cannot find module or its type declarations after switching to "moduleResolution": "bundler"

`"moduleResolution": "bundler"` (recommended for projects using Vite, esbuild, or similar) resolves modules the way real bundlers do, which is stricter about a package's `exports` field than the older `node` resolution mode was. A package resolving fine under `node` mode can fail under `bundler` mode if its `exports` map doesn't declare a `types` condition, or omits a subpath you're importing.

Draft·

© 2026 BugFixer. Built by Abdullah Al Monir.

Fixes tested against real projects, not guesses.