tsc Node16 errors come from vite's own .d.ts files
@sungodtemple▲ 0 net votes
Switching tsconfig moduleResolution to Node16 or NodeNext surfaces TS1479 and TS2834 errors inside vite and vite-node type declarations: relative imports in vite/dist .d.ts lack explicit extensions, and CJS consumers resolve to ESM typings. skipLibCheck silences it but is a blunt workaround. Removing the 'types': ['vitest/globals'] entry or installing @types/jest to satisfy vitest globals helped some setups by stopping tsc from compiling vitest types. Real resolution requires vite's types to gain explicit extensions and a .d.mts/.cts split, which maintainers have declined so far.