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

"import.meta" is not available in the configured target environment ("es2015") and will be empty #1

Open
VegetaSuper opened this issue Jul 17, 2023 · 1 comment

Comments

@VegetaSuper
Copy link

VegetaSuper commented Jul 17, 2023

启动项目时出现了警告
warning: "import.meta" is not available in the configured target environment ("es2015") and will be empty
可以在 tsconfig.json 的 compilerOptions 加上 "types": ["vite/client"] 修复警告

@grapetree
Copy link

grapetree commented Jan 14, 2024

加上后并没有用,报错依然存在

  • node版本
    image

image

image

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

2 participants