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

vue3版本app中vite编译器使用import.meta.glob报错,不能正常使用 #4995

Closed
wangchunling opened this issue Jun 18, 2024 · 1 comment
Assignees

Comments

@wangchunling
Copy link

使用cli开发模式,相关依赖版本为 "3.0.0-4010520240507001"
开发支付宝小程序时,import.meta.glob报错。
image

@Otto-J Otto-J self-assigned this Jul 31, 2024
@Otto-J
Copy link
Member

Otto-J commented Jul 31, 2024

经过验证,最新版本的 cli 相关依赖升级到 vite v5,使用 glob 正常使用。vite v5 其中一个改动是废弃了 globEager 的支持,如狗是写法报错,请参考最新 vite 文档 https://cn.vitejs.dev/guide/features.html#glob-import

@Otto-J Otto-J closed this as completed Jul 31, 2024
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