-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed
Description
相关平台
微信小程序
复现仓库
https://github.com/Lliuxs/taro-app.git
小程序基础库: 3.4.10及以上版本
使用框架: React
复现步骤
直接模版项目运行,整机调试打开调试工具,看到对应的报错且地图无回调事件
粘贴下列代码
export default function Index() {
function onRegionChange(e) {
console.log('********** regionchange ***********', e);
}
return (
<View className='index'>
<Map
latitude={23.099994}
longitude={113.32452}
showLocation
style={{ width: '100%', height: '100%' }}
onRegionChange={(e) => onRegionChange(e)}
></Map>
</View>
);
}
期望结果
onRegionChange 事件有回调响应
无 SystemError (webviewScriptError) 报错
实际结果
onRegionChange 事件无回调响应
有 SystemError (webviewScriptError) 报错
环境信息
Taro v3.6.25
Taro CLI 3.6.25 environment info:
System:
OS: macOS 13.3
Shell: 5.9 - /bin/zsh
Binaries:
Node: 14.21.3 - ~/.nvm/versions/node/v14.21.3/bin/node
npm: 6.14.18 - ~/.nvm/versions/node/v14.21.3/bin/npm
npmPackages:
@tarojs/cli: 3.6.35 => 3.6.25
@tarojs/components: 3.6.35 => 3.6.25
@tarojs/helper: 3.6.35 => 3.6.25
@tarojs/plugin-framework-react: 3.6.35 => 3.6.25
@tarojs/plugin-platform-alipay: 3.6.35 => 3.6.25
@tarojs/plugin-platform-h5: 3.6.35 => 3.6.25
@tarojs/plugin-platform-jd: 3.6.35 => 3.6.25
@tarojs/plugin-platform-qq: 3.6.35 => 3.6.25
@tarojs/plugin-platform-swan: 3.6.35 => 3.6.25
@tarojs/plugin-platform-tt: 3.6.35 => 3.6.25
@tarojs/plugin-platform-weapp: 3.6.35 => 3.6.25
@tarojs/react: 3.6.35 => 3.6.25
@tarojs/runtime: 3.6.35 => 3.6.25
@tarojs/shared: 3.6.35 => 3.6.25
@tarojs/taro: 3.6.35 => 3.6.25
@tarojs/taro-loader: 3.6.35 => 3.6.25
@tarojs/webpack5-runner: 3.6.35 => 3.6.25
babel-preset-taro: 3.6.35 => 3.6.25
eslint-config-taro: 3.6.35 => 3.6.25
react: ^18.0.0 => 18.3.1
补充信息
图片:https://developers.weixin.qq.com/community/develop/doc/00064ac1850758d4c122e95c561000?fromCreate=0
Metadata
Metadata
Assignees
Labels
No labels