-
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
miniprogramRoot 不是为空,所以miniprogram-ci会报错 #15947
Comments
原因是,miniprogram-ci 2.0.0 版本就不行了,降级为1.9.16版本可以。 |
This was referenced Jun 22, 2024
应该提到 https://www.npmjs.com/package/miniprogram-ci 这个仓库吧 |
没人解决吗 |
我为啥上传了体验版,打开页面空白,报错 pages/index/index.js 找不到。。 |
也是使用骚操作 sed -i 's/\".\/\"/\"\"/g' dist/project.config.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
小程序基础库: [system] WeChatLib: 3.4.3 (2024.5.17 14:14:37)
使用框架: React
复现步骤
使用build:weapp 后,生成的dist/project.config.json 的 "miniprogramRoot"是 "./"
如果将dist目录导入小程序 ,小程序会强制修改为 "miniprogramRoot": ""。
如果是上述逻辑,也没什么问题,问题是,使用build:weapp后,再使用小程序提供的miniprogram-ci进行上传。那么小程序会报文件找不到的错误。
我也有个临时解决办法,就是通过node fs,强制将miniprogramRoot设置为“”,但是属于骚操作了。
期望结果
生成的dist/project.config.json 的 "miniprogramRoot"是 ""
实际结果
生成的dist/project.config.json 的 "miniprogramRoot"是 "./"
环境信息
The text was updated successfully, but these errors were encountered: