梦栖
梦栖
  • 发布:2020-05-28 12:04
  • 更新:2020-05-28 18:28
  • 阅读:817

【报Bug】HBuilderX 2.7最新版本组件报错

分类:uni-app

更新完HBuilderX,之前的自定义组件,会报这种错误
event handler[-1][51-0] not found
这要怎么解决呢

2020-05-28 12:04 负责人:无 分享
已邀请:
梦栖

梦栖 (作者)

组件用的是hbuilder新建项目里面的Hello uni-app模板里面 PopUp弹出层

我的天空

我的天空

+1,也出现同样的错误

DCloud_uni-ad_HDX

DCloud_uni-ad_HDX

贴完整截图,event handler 上面有详细错误,这种情况一般是代码不规范导致,事件中访问了不存在的属性

  • 梦栖 (作者)

    // #ifdef APP-PLUS

    var currentWebview = vm.$mp.page.$getAppWebview();

    console.log(currentWebview)

    var tn = currentWebview.getStyle().titleNView;

    console.log(tn)

    tn.buttons[index].text = text; //[0] 按钮的下标

    currentWebview.setStyle({

    titleNView: tn

    });

    // #endif

    动态修改原生titleNview,新版本为什么不支持?

    2020-05-28 21:14

2***@qq.com

2***@qq.com - android,前端开发工程师

我也是醉了,longpress也没有了?这什么骚操作
[Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.392 (found in <Root>)
18:26:30.423 [Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.486 (found in <Root>)
18:26:30.517 [Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.579 (found in <Root>)
18:26:30.611 [Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.673 (found in <Root>)
18:26:30.704 [Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.767 (found in <Root>)
18:26:30.798 [Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.861 (found in <Root>)
18:26:30.892 [Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.954 (found in <Root>)
18:26:30.986 [Vue warn]: Invalid handler for event "longpress": got undefined

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