Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

钉钉小程序使用分享报错提示Cannot read property 'target' of undefined at Object.config.onShareAppMessage #8045

Open
132liyh opened this issue Nov 16, 2020 · 0 comments
Labels
F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x

Comments

@132liyh
Copy link

132liyh commented Nov 16, 2020

相关平台

支付宝小程序

小程序基础库: 0.0
使用框架: Vue 3

复现步骤

onShareAppMessage(res){
return {
title: '小程序示例',
desc: '小程序官方示例Demo,展示已支持的接口能力及组件。',
path: 'page/component/component-pages/view/view?param=123'
};
},

<button open-type="share">click me share</button>

期望结果

正常使用分享

实际结果

taro.js:3555 Uncaught TypeError: Cannot read property 'target' of undefined
at Object.config.onShareAppMessage (taro.js:3555)
at e.handleMessageFromRender4MessagePort (VM94 vendors.bundle.js:66)
at e.handleMessageFromRender (VM94 vendors.bundle.js:66)
at e.postMessage (VM94 vendors.bundle.js:51)
at e.handleAPI4PostMessage (VM94 vendors.bundle.js:79)
at e.bridgeCall (VM94 vendors.bundle.js:79)

环境信息

� Taro v3.0.16


  Taro CLI 3.0.16 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.18.2 - D:\nodejs\node.EXE
      Yarn: 1.22.4 - C:\Users\liyh\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.5 - D:\nodejs\npm.CMD

补充信息

钉钉小程序手机上预览也是
模拟器上也是

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x labels Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

1 participant