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

vue3下载nvue页面使用plus.webview.create创建网页后,网页中uni.postMessage会触发报错 #4890

Open
Will-yc opened this issue May 9, 2024 · 1 comment

Comments

@Will-yc
Copy link

Will-yc commented May 9, 2024

vue3下载nvue页面使用plus.webview.create创建网页后,网页中uni.postMessage和uni.webView.postMessage都会触发报错,代码执行不下去,nvue页面的plus.globalEvent.addEventListener('plusMessage'也不会执行,以下是代码示例,
vue3bug.zip

@Will-yc
Copy link
Author

Will-yc commented May 9, 2024

报错信息

10:12:30.161 [JS Framework] Failed to execute the callback function:
TypeError: Cannot read property 'nodeName' of undefined
10:12:30.166 reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: Cannot read property 'nodeName' of undefined
at Ud (uni-jsframework.js:44:225353)
at tN (uni-jsframework.js:44:225528)
at eI (uni-jsframework.js:44:242023)
at QN (uni-jsframework.js:44:241935)
at (uni-jsframework.js:44:242660)
at emit (uni-jsframework.js:23:11246)
at subscribeHandler (uni-jsframework.js:44:45883)
at pv (uni-jsframework.js:44:239270)
at consume (uni-jsframework.js:23:15564)
at callback (uni-jsframework.js:25:1659)
10:12:30.832 [JS Framework] Failed to execute the callback function:
TypeError: Cannot read property 'nodeName' of undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant