-
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 4.0.5新建项目在支付宝小程序开发工具构建失败 #16560
Comments
TheKonka
added
F-react
Framework - React
T-alipay
Target - 编译到支付宝小程序
V-4
Version - 4.x
labels
Sep 19, 2024
支付宝小程序需要一个专门的配置文件 mini.project.json ,直接打开 dist 目录会导致修改的项目配置得不到保存,所以不建议这样做,推荐直接打开项目根目录,然后配置文件内容可以参考 |
This was referenced Sep 21, 2024
和transpile没什么关系, 3.6.35运行就没什么问题, 在4.0就是无法构建, 我还特地新建了一个空白项目, 直接出现上面的构建错误 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
支付宝小程序
小程序基础库: 2.9.x
使用框架: React
复现步骤
1、新建项目
2、npm run dev:alipay
3、使用支付宝小程序开发工具打开dist目录
期望结果
正常预览
实际结果
编译失败:
For the selected environment is no default script chunk format available:
JSONP Array push can be chosen when 'document' or 'importScripts' is available.
CommonJs exports can be chosen when 'require' or node builtins are available.
Make sure that your 'browserslist' includes only platforms that support these features or select an appropriate 'target' to allow selecting a chunk format by default. Alternatively specify the 'output.chunkFormat' directly.
Dev server exited unexpectedly with code 1
Please try to restart by clicking 'Restart'
环境信息
The text was updated successfully, but these errors were encountered: