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

百度小程序使用map返回组件时出错 #4361

Closed
kk412027247 opened this issue Sep 2, 2019 · 4 comments
Closed

百度小程序使用map返回组件时出错 #4361

kk412027247 opened this issue Sep 2, 2019 · 4 comments
Labels
question Further information is requested

Comments

@kk412027247
Copy link

问题描述
百度小程序使用map返回组件时出错

复现步骤
数组用map方法,返回组件的时候出错

import Taro, {Component} from '@tarojs/taro'
import {View,} from '@tarojs/components'
import ListItem from './listItem/listItem'

import './index.scss'

const list = [111, 222, 333];


class Index extends Component {

  config = {
    navigationBarTitleText: '首页'
  };

  render() {
    return (
      <View className='index'>

        {
          list.map(item => <ListItem item={item} key={item} />)
        }
      </View>
    )
  }
}

export default Index

这个项目 https://github.com/kk412027247/swan-app

期望行为
希望可以顺利渲染出组件

报错信息

0A3142A7-8F15-4245-A284-24E352CA6467

系统信息

  • 操作系统: [ Windows 10]
  • Taro 版本 [1.3.16]
  • Node.js 版本 [10.15.3]
  • 报错平台 [ swan]
@taro-bot
Copy link

taro-bot bot commented Sep 2, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@Chen-jj
Copy link
Contributor

Chen-jj commented Sep 3, 2019

@kk412027247 CLI 和依赖都升级到 1.3.17 再试试

image

@Chen-jj Chen-jj added answered question Further information is requested labels Sep 3, 2019
@taro-bot taro-bot bot added the to be closed label Sep 3, 2019
@taro-bot
Copy link

taro-bot bot commented Sep 3, 2019

Hello~

您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。

如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。

Good luck and happy coding~

@kk412027247
Copy link
Author

升级到 1.3.17 顺利通过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants