does not have a method “xxx“ to handle event “tap“报错

时间:2025-02-18 08:04:27

初始化小程序模板,添加自定义点击事件,有does not have a method "xxx" to handle event "tap"提示:

1:js未定义该事件,查看是否已定义该事件

2:查看是否有lazyCodeLoading属性,删除"lazyCodeLoading": "requiredComponents"该属性(类似什么修改本地设置之类的处理办法,时无法真正处理该问题)