error TS2688: Cannot find type definition file for 'vite/dist/importMeta'.
corbaz opened this issue · comments
Julio Cesar Corbaz commented
Description
svelte-check && tsc --noEmit
Reproduction
svelte-check found 0 errors, 0 warnings and 0 hints
error TS2688: Cannot find type definition file for 'vite/dist/importMeta'.
Found 1 error.
Additional Information
Windows 10 x64
Dominik G. commented
which package manager are you using? pnpm or yarn2 may have put vite in a place where tsc doesn't see it. you can try to add vite as a devDependency or copy the importMeta.d.ts from vite into your project
Julio Cesar Corbaz commented
pnpm
Dominik G. commented
@corbaz does pnpm i -D vite
solve your issue?