You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: tarojs_taro_h5__WEBPACK_IMPORTED_MODULE_1_.default.useShareAppMessage is not a function
at WrappedComponent.render (index.js?b069:14)
at eval (index.esm.js?eb37:1761)
at errorCatcher (index.esm.js?eb37:1655)
at renderComponent (index.esm.js?eb37:1760)
at mountComponent (index.esm.js?eb37:1733)
at ComponentWrapper.init (index.esm.js?eb37:2137)
at createElement (index.esm.js?eb37:1398)
at mountChild (index.esm.js?eb37:1463)
at mountVNode$1 (index.esm.js?eb37:1453)
at createElement (index.esm.js?eb37:1403)
`
Taro 版本 [1.3.17]
报错平台 [h5]
The text was updated successfully, but these errors were encountered:
##H5环境下 小程序相关Hooks 异常。
`javascript
useShareAppMessage(res => {
if (res.from === "button") {
// 来自页面内转发按钮
console.log(res.target);
}
return {
title: "首页",
path: "/pages/home/index"
};
});
TypeError: tarojs_taro_h5__WEBPACK_IMPORTED_MODULE_1_.default.useShareAppMessage is not a function
at WrappedComponent.render (index.js?b069:14)
at eval (index.esm.js?eb37:1761)
at errorCatcher (index.esm.js?eb37:1655)
at renderComponent (index.esm.js?eb37:1760)
at mountComponent (index.esm.js?eb37:1733)
at ComponentWrapper.init (index.esm.js?eb37:2137)
at createElement (index.esm.js?eb37:1398)
at mountChild (index.esm.js?eb37:1463)
at mountVNode$1 (index.esm.js?eb37:1453)
at createElement (index.esm.js?eb37:1403)
`
Taro 版本 [1.3.17]
报错平台 [h5]
The text was updated successfully, but these errors were encountered: