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

[Bug Report] Popup和 ActionSheet 会导致同页面中的 Map 组件报错 #849

Closed
felix9ia opened this issue Nov 26, 2024 · 2 comments
Closed

Comments

@felix9ia
Copy link

问题出在哪个包

@taroify/core

问题出在哪个平台/设备/浏览器

微信小程序

平台/设备/浏览器

小程序

你正在使用的 Taroify 版本是多少

0.5.2-alpha.0

描述一下您遇到的问题以及重现步骤

报错:

[渲染层错误] TypeError: SystemError (exparserScriptError)
Cannot read property 'lat' of undefined(env: Windows,mp,1.06.2409140; lib: 3.6.1)
[渲染层错误] TypeError: Cannot read property 'lat' of undefined
    at t.e.getNorth (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:40:106274)
    at t.e.getNorthWest (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:40:105991)
    at e.i.fitBounds (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:69:436031)
    at l.pointsChanged (http://127.0.0.1:17872/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1732607923981&v=3.6.1:1:1825186)
    at Function.a.safeCallback (http://127.0.0.1:17872/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1732607923981&v=3.6.1:1:463245)
    at l.<anonymous> (http://127.0.0.1:17872/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1732607923981&v=3.6.1:1:506909)
    at d.doUpdates (http://127.0.0.1:17872/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1732607923981&v=3.6.1:1:526087)
    at u (http://127.0.0.1:17872/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1732607923981&v=3.6.1:1:2252090)
    at Zi (http://127.0.0.1:17872/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1732607923981&v=3.6.1:1:2255440)
    at vn (http://127.0.0.1:17872/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1732607923981&v=3.6.1:1:2261111)(env: Windows,mp,1.06.2409140; lib: 3.6.1)

导致错误的示例:

<ScrollView>
 <Cell>
              <Map latitude={0} longitude={0}
                markers={[{
                     id: 1,
                     latitude:0,
                     longitude: 0,
                     iconPath: "",
                     width: 40,
                     height: 60
                   }]}
                onClick={onMapClick} onError={onMapError}
              />
            </Cell>
 </ScrollView>
 <Popup placement="bottom" open={shopStateOpen}
        onClose={setShopStateOpen}
      >
        {actions.map((action) => (
          <Cell>
            {action.name}
          </Cell>
        ))}
      </Popup>

如果可能的话,请包含一个代码框的链接与复制的问题

No response

你知道如何解决这个问题吗

None

您是否愿意参与修复这个问题,并创建一个 PR

None

修复这个问题的解决方案

No response

@felix9ia
Copy link
Author

这个 Issue 似乎我应该给 Taro 提交.....

@felix9ia
Copy link
Author

NervJS/taro#16931

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

No branches or pull requests

1 participant