a***@sina.cn
a***@sina.cn
  • 发布:2020-10-19 21:25
  • 更新:2021-11-20 23:40
  • 阅读:1891

【报Bug】qq小程序开发工具无法正常打开,其他小程序可以

分类:uni-app

产品分类: uniapp/小程序/QQ

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 2.9.3

第三方开发者工具版本号: 0.3.1

基础库版本号: 1.20.0

项目创建方式: HBuilderX

示例代码:

以下是qq小程序的app.json代码

{  
  "pages": [  
    "pages/tab/repair"  
  ],  
  "window": {  
    "navigationBarTextStyle": "white",  
    "navigationBarTitleText": "福熙123",  
    "navigationBarBackgroundColor": "#9A36CE",  
    "backgroundColor": "#FFFFFF"  
  },  
  "tabBar": {  
    "color": "#6B7374",  
    "selectedColor": "#9A36CE",  
    "borderStyle": "white",  
    "backgroundColor": "#F6F7F8",  
    "list": [  
      {  
        "pagePath": "pages/tab/repair",  
        "iconPath": "static/images/tab-bar/home.png",  
        "selectedIconPath": "static/images/tab-bar/home-active.png",  
        "text": "福123"  
      }  
    ]  
  },  
  "networkTimeout": {  
    "request": 8000,  
    "uploadFile": 60000,  
    "downloadFile": 60000,  
    "connectSocket": 30000  
  },  
  "permission": {  
    "scope.userLocation": {  
      "desc": "需要您的地址才能获得相关服务"  
    }  
  },  
  "usingComponents": {}  
}

以下是模板文件(vue)repair.vue的代码

<template>  
    <div>  
        <view class="grace-margin-top grace-h3">正在筹备中</view>  
    </div>  
</template>  

<script>  

  export default {  
    components: {},  
    onShareAppMessage: function (res) {  
      return this.createShareData()  
    },  
  }  
</script>  

<style scoped>  

</style>

操作步骤:

在hbuidx点击运行qq小程序,或打包qq小程序
将路径复制到小程序开发工具中打开

预期结果:

正常显示程序

实际结果:

报错,无法打开页面

bug描述:

在微信小程序、字节跳动小程序,运行、打包都没有问题
在qq小程序开发工具里,运行、打包都无法正常打开页面,报错

thirdScriptError
sdk uncaught third Error
Cannot read property '_unprepared' of undefined
TypeError: Cannot read property '_unprepared' of undefined
at Function.o.prepare (http://127.0.0.1:55163/appservice/dev/QLogic.js:1:839019)
at H (http://127.0.0.1:55163/appservice/dev/QLogic.js:1:902768)
at Object.e (http://127.0.0.1:55163/appservice/dev/QLogic.js:1:911206)
at yt (http://127.0.0.1:55163/appservice/dev/QLogic.js:1:1010389)
at Nt (http://127.0.0.1:55163/appservice/dev/QLogic.js:1:1027532)
at Component (http://127.0.0.1:55163/appservice/common/vendor.js:53:4340)
at Object.createComponent (http://127.0.0.1:55163/appservice/common/vendor.js:110:376)
at Object.pagesStoreComponentsThoruiTuiButtonTuiButtonCreateComponent (http://127.0.0.1:55163/appservice/pages/store/components/thorui/tui-button/tui-button.js:480:48)
at __webpack_require__ (http://127.0.0.1:55163/appservice/common/runtime.js:269:23)
at checkDeferredModules (http://127.0.0.1:55163/appservice/common/runtime.js:152:18)

基础库1.20还会报以下错误
Mon Oct 19 2020 21:18:50 GMT+0800 (中国标准时间) Page route 错误
VM5141:263 Page[pages/tab/repair] not found. May be caused by: 1. Forgot to add page route in app.json. 2. Invoking Page() in async task.
console.warn @ VM5141:263
A @ QLogic.js:formatted:56530
Tt @ QLogic.js:formatted:57723
(anonymous) @ QLogic.js:formatted:57900
(anonymous) @ QLogic.js:formatted:57905
(anonymous) @ QLogic.js:formatted:57922
(anonymous) @ QLogic.js:formatted:56557
Y.emit @ QLogic.js:formatted:26133
emit @ QLogic.js:formatted:26386
(anonymous) @ QLogic.js:formatted:34521
(anonymous) @ QLogic.js:formatted:25612
e @ index.js:197
n.registerCallback @ index.js:216
l.forEach @ index.js:133
(anonymous) @ index.js:131
s.onmessage @ index.js:138
QLogic.js:formatted:56524 Mon Oct 19 2020 21:18:50 GMT+0800 (中国标准时间) Page route 错误
VM5141:252 Page is not constructed because it is not found. path:pages/tab/repair, validPath:components/address-popup/address-popup,components/card/card-group-cover,components/card/card-table,components/card/card-thumb-two,components/chunLei-popups/chunLei-popups,components/collect/collect-tips,components/comment-input/comment-input,components/dy-datetime-pcker/dy-datetime-pcker,components/form/city-one-level,components/form/date-time-grace,components/form/form-group,c…………………………(可能列出了所有组件)

为了进一步排除问题,我在app.json里把所有页面配置全部删除了,只留了一个页面,依旧报错
实在是找不到问题所在,感觉更可能是bug吧

2020-10-19 21:25 负责人:无 分享
已邀请:
3***@qq.com

3***@qq.com

老兄,请问解决了吗?遇到同样问题。
另外我还出现:Page is not constructed because it is not found

  • 星海扬帆

    请问问题是否解决?我现在遇到了,只有qq平台,只要是打包上传上去或真机调试或预览,都是Page is not constructed because it si not found

    2023-11-09 23:32

该问题目前已经被锁定, 无法添加新回复