Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite Import has no exported member Error #96

Open
shellscape opened this issue Oct 5, 2024 · 0 comments
Open

Vite Import has no exported member Error #96

shellscape opened this issue Oct 5, 2024 · 0 comments

Comments

@shellscape
Copy link

shellscape commented Oct 5, 2024

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/[email protected] 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/[email protected]/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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant