Vite Import `has no exported member` Error
Opened this issue · 0 comments
shellscape commented
I've got an .mts
file importing some types from vite:
import type { PluginOption, ViteDevServer } from 'vite';
Nothing extraordinary going on there. However, when building with tshy I receive:
error TS2305: Module '"vite"' has no exported member 'PluginOption'.
(https://unpkg.com/browse/vite@5.4.8 for easy browsing)
tsc
doesn't have an issue compiling this with the settings in my repo. The export does definitely exist at https://unpkg.com/browse/vite@5.4.8/dist/node/index.d.ts way down on line 3578, and intellisense in both VSCode and Zed pick up on the [correct] location of that type.
This is currently causing 32 build errors for me so it's not a quick lift to just toss a //@ts-ignore
on there like we've done in a few spots with tshy compat issues.