You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using @vuepress/bundler-vite, Vite will do things like replacing environment variables. However, with pnpm, I need to manually install vite and write /// command to get correct types of import.meta.env.
Suggested solution
Add packages/bundler-vite/client.d.ts (exports as @vuepress/bundler-vite/client):
/// <reference types="vite/client" />
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Clear and concise description of the problem
When using
@vuepress/bundler-vite
, Vite will do things like replacing environment variables. However, with pnpm, I need to manually installvite
and write///
command to get correct types ofimport.meta.env
.Suggested solution
Add
packages/bundler-vite/client.d.ts
(exports as@vuepress/bundler-vite/client
):/// <reference types="vite/client" />
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: