1***@qq.com
1***@qq.com
  • 发布:2023-12-20 18:20
  • 更新:2023-12-21 11:00
  • 阅读:73

【报Bug】uni.createIntersectionObserver H5环境下保安错

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win11

浏览器平台: Chrome

浏览器版本: 120.0.6099.109

项目创建方式: CLI

CLI版本号: vite 4.0.3

操作步骤:

使用 uni.createIntersectionObserverH5 环境下报错

预期结果:

使用 uni.createIntersectionObserverH5 环境不报错

实际结果:

Uncaught (in promise) TypeError: Cannotuni-h5,es.js:6842read properties of null (readingio')at addIntersectionObserver (uni-h5.es .js:6842:8)at ServiceIntersectionObserver,observe (uni-h5es.js:4631:
at Proxy.created (index.vue:101:41at callwithErrorHandling (vue.runtime.esm.js:1375:36)at callwithAsyncErrorHandling (yue,runtime.esm.js:1384:21at callHook$1 (vue.runtime.esm.js:4966:5)at applyOptions (yue,runtime.esm.js:4862:9at finishComponentsetup ( vue.runtime.esm.js:8761:9)at setupstatefulComponent (vue.runtime.esm.js:8672:9at setupComponent( wue , runtime , esm.js :8594:11
created
index.vue:101
Promise.then 《异步)

bug描述:

2023-12-20 18:20 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com (作者)

"vite": "4.0.3",
"vue": "^3.2.45",
小程序正常,编译成h5会报错 APP暂时没测试

YUANRJ

YUANRJ

请提供下测试工程

要回复问题请先登录注册