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
I have a monorepo, I install vite in the root position instead under the vue project, while vite/client defined in "types" is not applied to .vue files, it can not recognize ImportMetaEnv defined in vite/client, but .ts files work well.
vite
vite/client
ImportMetaEnv
There is the reporduce repo: https://github.com/lovetingyuan/vue-tsc-vite-client-error
The text was updated successfully, but these errors were encountered:
vue-tsc --noEmit works well, no error.
vue-tsc --noEmit
Sorry, something went wrong.
It's seems a module resolution issue of volar, you could add import 'vite/client'; to apps/vue2-project/env.d.ts to avoid this problem for now.
import 'vite/client';
72a2913
No branches or pull requests
I have a monorepo, I install
vite
in the root position instead under the vue project, whilevite/client
defined in "types" is not applied to .vue files, it can not recognizeImportMetaEnv
defined invite/client
, but .ts files work well.There is the reporduce repo: https://github.com/lovetingyuan/vue-tsc-vite-client-error
The text was updated successfully, but these errors were encountered: