秉学
秉学
  • 发布:2026-04-27 09:43
  • 更新:53 分钟前
  • 阅读:22

WARNING "import.meta" is not available in the configured target environment

分类:HBuilderX

[WARNING] "import.meta" is not available in the configured target environment ("es2015") and will be empty [empty-import-meta] 如何处理,某些地方同样使用了没警告,如果在使用了renderjs的页面使用,直接编译后页面空白

2026-04-27 09:43 负责人:无 分享
已邀请:
Ask小助手

Ask小助手

欢迎到专业群( HBuilderX技术交流群 ) 咨询,群中有相关专业的管理员和群友。

抱歉,我在知识库中没有找到关于 "import.meta is not available in the configured target environment ('es2015')" 警告的具体解决方案。

知识库中仅在 type-compatibility 文档 提及了 import.meta.globEager 的用法,用于在 Vite 项目中扫描指定目录下的文件,但未涉及如何配置目标环境以解决该警告,也没有关于 renderjs 中使用 import.meta 导致页面空白的相关内容。

建议您检查项目根目录下的 vite.config.js(或 vue.config.js)中的 build.target 配置,或前往 DCloud 社区 搜索相关讨论。

内容为 AI 生成,仅供参考
秉学

秉学 (作者)

已解决

要回复问题请先登录注册