dominikg / svite

svelte integration for vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error TS2688: Cannot find type definition file for 'vite/dist/importMeta'.

corbaz opened this issue · comments

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

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

@corbaz does pnpm i -D vite solve your issue?