导航

    Taro 社区

    Taro

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 话题
    • 热门
    • 群组
    1. 主页
    2. wythe1914
    W
    • 资料
    • 关注
    • 粉丝
    • 主题
    • 帖子
    • 最佳
    • 群组

    wythe1914

    @wythe1914

    0
    声望
    5
    帖子
    646
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    wythe1914 关注

    wythe1914 发布的帖子

    • RE: Invoke event eh in component: jobpages/jobsMap/index 错误,这个怎么解决?

      @Taro-小助手-honly 可以了,我升级到3.0.23就正常了✌ ✌ ✌ ✌ ✌

      发布在 Taro
      W
      wythe1914
    • Invoke event eh in component: jobpages/jobsMap/index 错误,这个怎么解决?

      版本是:Taro v3.0.14
      以下是精简后的代码:主要想实现地图拖拽,获取onRegionChange中的值

      import Taro from '@tarojs/taro' 
      import { View, Map } from '@tarojs/components'
      import React, { Component } from 'react'
      
      const Jobsmap = props => {
        return (
          <View className='index'>
            <Map
              className="map"
              latitude={24.5759000000}
              longitude={118.0972700000}
              enableZoom={true}
              showLocation={true}
              // 地图拖拽之后,报错:Invoke event eh in component: jobpages/jobsMap/index
              onRegionChange={(e) => {
                console.log(e)
              }}
            >
            </Map>
          </View>
        )
      }
      export default Jobsmap
      
      

      问题描述:地图拖拽报 Invoke event eh in component: jobpages/jobsMap/index错误,点击地图onTap事件是正常的

      问题过程:在我的项目中添加Map组件之后,拖拽事件始终无法执行,新建空白的项目这段代码能正常运行,能获取TaroEvent {_stop: false, _end: false, defaultPrevented: false, timeStamp: 1610666808395, type: "end", …}对象,在旧的项目中添加Map就不行,一时也找不到原因。

      发布在 Taro
      W
      wythe1914
    • 开发者工具正常、真机调试正常、真机预览报这个错误,hooks can only be called in a stateless component.

      我试过开发者工具可以,自动预览PC端浏览可以,真机调试可以,真机预览不行,体检版也不行。报这个错误 hooks can only be called in a stateless component.这个问题,有没有遇到过的,请问大神你们碰到这种情况都是怎么解决的。

      使用的是 taro2.2.11+dva+hooks

      微信图片_20201123234548.jpg

      发布在 Taro
      W
      wythe1914
    • RE: 真机调试,预览都显示正常,线上发布之后报错Can't find variable:regeneratorRuntime

      @jd_57356bd9863f0 牛逼,解决了我的大问题,加个微信,我给你发个红包。

      发布在 微信小程序
      W
      wythe1914
    • 真机调试,预览都显示正常,线上发布之后报错Can't find variable:regeneratorRuntime

      已经被折磨疯了

      替代文字

      发布在 微信小程序
      W
      wythe1914