微信小程序bindtap事件绑定莫名其妙报错

错误代码:Component “components/noteCard/index” does not have a method “checkDetails” to handle event “tap”.

<view bindtap="checkDetails" class="evaluate btn">查看详情</view>
const app = getApp()
Page({
data: {}
addNote() {
wx.navigateTo({
url: `/pages/addNote/index`,
})
}
})

这个bindtap看起来完全没问题,但是就是无法实现跳转且报警告,解决方法如下:
把本地设置中的“将JS编译成ES5”取消勾选再勾选回去就行,具体原因未知。
在这里插入图片描述