-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
类型“ImportMeta”上不存在属性“env”. #6211
Labels
Comments
Duplicate of #6194 |
haoqunjiang
added a commit
to haoqunjiang/vite
that referenced
this issue
Dec 21, 2021
9 tasks
patak-dev
pushed a commit
that referenced
this issue
Dec 21, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
从2.7.3升级至2.7.4后报错类型“ImportMeta”上不存在属性“env”。
当我执行pnpm up升级项目依赖,vite从2.7.3升级至2.7.4后,重启vscode再次打开项目会报错类型“ImportMeta”上不存在属性“env”。
Reproduction
https://github.com/ArcherGu/vite-static-site
打开项目执行pnpm install 在app.vue里打印console.log(import.meta.env),然后执行pnpm up,升级完成后,重启vscode 重新打开项目,会看到app.vue中提示类型“ImportMeta”上不存在属性“env”。
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: