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

ChannelVideo传参错误 #16214

Open
tingting-lucy opened this issue Jul 31, 2024 · 1 comment
Open

ChannelVideo传参错误 #16214

tingting-lucy opened this issue Jul 31, 2024 · 1 comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@tingting-lucy
Copy link

相关平台

微信小程序

小程序基础库: 3.5.0
使用框架: React

复现步骤

{<ChannelVideo
feedId={item?.objectId}
finderUserName={item?.relevancyChannelsAccount}
feedToken={'token/ACB5C55M8'}
autoplay={false}
> }

期望结果

{<ChannelVideo
feedId={item?.objectId}
finderUserName={item?.relevancyChannelsAccount}
feedToken={'token/ACB5C55M8'}
autoplay={false}
> }

实际结果

https://react.dev/errors/130?invariant=130&args%5B%5D=undefined&args%5B%5D=

环境信息

Taro CLI 3.5.8 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 16.20.2 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.21 - ~\AppData\Roaming\npm\yarn.CMD  
      npm: 8.19.4 - C:\Program Files\nodejs\npm.CMD  

补充信息

使用组件ChannelVideo,按照文档传参报错,找不到问题出在哪

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jul 31, 2024
This was referenced Aug 3, 2024
@tangbzai
Copy link
Contributor

tangbzai commented Aug 5, 2024

feedIdfinderUserName是必填的,你试试这样行不行?

{item?.objectId && item?.relevancyChannelsAccount && <ChannelVideo
  feedId={item.objectId}
  finderUserName={item.relevancyChannelsAccount}
  feedToken={'token/ACB5C55M8'}
  autoplay={false}
/>}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

No branches or pull requests

2 participants