-
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
taro build --type h5 报错 js/app.588bd635.js from Terser TypeError: t.replace is not a function at Array.forEach (<anonymous>) #16159
Comments
taro-bot2
bot
added
F-react
Framework - React
T-h5
Target - 编译到 H5
V-3
Version - 3.x
labels
Jul 25, 2024
This was referenced Jul 27, 2024
这个问题解决了吗。我也遇到这个问题,很离奇的是把里面的内容拷贝到另外一个目录,又能正常构建h5。同时有问题的那个项目把里面pinia相关的东西注释掉以后也能构建h5 |
我这里解决方案是自己实现了一个轻量版pinia 查看下来是因为pinia造成的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
浏览器版本: chrome 126.0.6478.183
使用框架: React
复现步骤
直接运行 taro build --type h5 就会报错
期望结果
正常编译
实际结果
js/app.588bd635.js from Terser
TypeError: t.replace is not a function
at Array.forEach ()
环境信息
The text was updated successfully, but these errors were encountered: