-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
初始化项目选择 vite 打包 h5 报错 #17278
Comments
This was referenced Feb 8, 2025
使用 ts,也有这个问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
浏览器版本: Microsoft Edge126.0.2592.102 (正式版本) (64 位)
使用框架: React
复现步骤
taro init myApp 运行该方法初始化一个项目, 选择 react , 不使用 TS, 编译为 ES5, 选择 Less, yarn, VIte, Gitee, 默认模版.
然后切换到项目文件 yarn 下载包, 再运行 build:h5 会报错:
[vite:legacy-post-process] [BABEL] unknown file: @babel/helper-compilation-targets: 'development' is not a valid target
期望结果
正常打包
实际结果
打包错误
环境信息
The text was updated successfully, but these errors were encountered: