发布之后,除了显示tabbar,页面全部为空白?
发布于 4 年前 作者 yangshen 12332 次浏览 来自 官方Issues

用的是【有赞】vant-weapp 的组件

小程序【宁理青年】发布之后是这样的。

手机型号 iPhone XR ,华为P30,iPhone 7 体验版都能打开

__________________________________________________________________

发布之后,全部页面都是空白。

___________________________________________________________________________

服务器合法请求,信息已经配置为 https:www.gaoxiaozuzhi.com

真机调试可以请求到数据的

___________________________________________________________________________

在微信小程序后台看到的报错。

Error line:2,column:2164642,Error: module “@babel/runtime/helpers/interopRequireDefault.js” is not defined Stack:require@https://lib/WASubContext.js:2:2164642 https://lib/WASubContext.js:2:2164032 https://usr/app-service.js:6193:29 require@https://lib/WASubContext.js:2:2164867 https://lib/WASubContext.js:2:2164032 https://usr/app-service.js:6298:356 require@https://lib/WASubContext.js:2:2164867 global code@https://usr/app-service.js:6299:17 value@https://lib/WAServiceMainContext.js:2:151185 https://lib/WAServiceMainContext.js:2:153898 https://lib/WAServiceMainContext.js:2:153865 g@https://lib/WAServiceMainContext.js:2:81721 y@https://lib/WAServiceMainContext.js:2:81995 a@https://lib/WAServiceMainContext.js:2:152852 https://lib/WAServiceMainContext.js:2:154439 https://lib/WAServiceMainContext.js:2:143968 https://lib/WAServiceMainContext.js:2:255575 https://lib/WAServiceMainContext.js:2:254543 https://lib/WAServiceMainContext.js:2:254507 https://lib/WAServiceMainContext.js:2:255575 _@https://lib/WAServiceMainContext.js:2:78184

头都秃了~~ T_T

3 回复

把上传时进行代码保护去掉。重新上传体验版 预览下。如果正常 那就可以提交审核发布了。

现在你要做的是 手机先打开开发版本,然后打开调试模式,然后打开线上版本,可以看到线上版本也有vconsole。打开看下报啥错,

Error: module “@babel/runtime/helpers/interopRequireDefault.js” is not defined 

项目里没有用到这个

页面的内容及数据是不是通过接口返回的数据来显示的 看看是不是服务器域名没加上

回到顶部