收藏
回答

this.getOpenerEventChannel is not a function?

基础库2.16.1,使用navigateTo设定events以后,下个页面一直报

TypeError: this.getOpenerEventChannel is not a function

是有什么特殊原因吗?

还需要别的什么其他设定吗?

增强编译开关都不行

回答关注问题邀请回答
收藏

3 个回答

  • momo1
    momo1
    2022-01-17

    关注中

    2022-01-17
    有用
    回复
  • Kenny ᯤ⁶ᴳ
    Kenny ᯤ⁶ᴳ
    2021-07-29

    你的解决了吗我也遇到这个问题了

    2021-07-29
    有用
    回复
  • Riven.
    Riven.
    2021-05-13

    你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

    2021-05-13
    有用
    回复 5
    • zyz
      zyz
      2021-08-10
      我的线上环境也遇到了同样的问题,问题都是出现在android机上,ios没有问题,基础库2.19.0和2.19.1都有问题
      2021-08-10
      1
      回复
    • Riven.
      Riven.
      2021-08-10回复zyz
      复现问题的代码片段提供一下(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
      2021-08-10
      回复
    • momo1
      momo1
      2022-01-17
      2022年了,这个问题还在!目前都是Android机器上的问题。
      2022-01-17
      回复
    • Riven.
      Riven.
      2022-01-17回复momo1
      具体怎么复现呢?代码片段提供一下(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
      2022-01-17
      回复
    • Bealiah
      Bealiah
      2022-03-10回复Riven.
      Page({
       onLoad: function(options) {  
          const eventChannel = this.getOpenerEventChannel(); 
          eventChannel.on("pay", (obj) =>{ 
             console.log('ok');
          });
        },
      });    
      也没什么特别写法,我们线上遇到这个问题, 机型也是安卓机
      TNN-AN00arm64-v8a   
      V2072Aarm64-v8a
      TAS-AL00arm64-v8a 这三个是线上错误日志里反馈的设备型号
      2022-03-10
      回复
登录 后发表内容