收藏
回答

scroll-view custom 模式下,Mac 和Windows端自动预览报错

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug scroll-view 微信iOS客户端 4.1.0.34 WeChatLib: 3.10.0 (2025.9.10 19:25:06)

https://developers.weixin.qq.com/miniprogram/dev/component/scroll-view.html

  1. 官方提供的scrollview列表构造器示例代码,只要页面的scroll-view 设置成 custom 模式,Mac 和Windows端自动预览就加载不出来,报错如下

SystemError (jsEnginScriptError)

Cannot read properties of undefined (reading 'item')

TypeError: Cannot read properties of undefined (reading 'item')

    at h (https://usr/chunk_2.appservice.js:1:962)

    at t.handleChildrenUpdate (https://usr/common.app.js:1:32623)

    at https://usr/common.app.js:1:32769

    at g (https://usr/chunk_2.appservice.js:1:1767)

    at t.handleChildrenUpdate (https://usr/common.app.js:1:32623)

    at https://usr/common.app.js:1:32769

    at a (https://usr/chunk_2.appservice.js:1:2890)

    at t.handleChildrenUpdate (https://usr/common.app.js:1:32623)

    at t.update (https://usr/common.app.js:1:30960)

    at https://usr/common.app.js:1:36367


回答关注问题邀请回答
收藏

1 个回答

  • 智能回答 智能回答 本次回答由AI生成
    2025-09-16
    有用
    回复 1
    • 人间正道是沧桑
      人间正道是沧桑
      2025-09-16
      1.完整报错信息已经提供
      2.打开官方提供的代码片段-点击预览-启动Mac端自动预览,打开页面直接报错
      3.和开发者工具无关,我试了好几个都是有问题,我当前工具版本是 stable 1.06.2504030
      2025-09-16
      回复
登录 后发表内容