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

Cannot read property '0' of undefined,Cannot read property 'map' of undefined,Cannot read property 'forEach' of undefined #7805

Closed
JakeWoki opened this issue Oct 10, 2020 · 0 comments
Labels
F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@JakeWoki
Copy link

JakeWoki commented Oct 10, 2020

相关平台

H5

浏览器版本: Google Chrome 84.0.4147.105
使用框架: Vue 2

复现步骤

TypeError: Cannot read property '0' of undefined
    at addLeadingSlash (taro-tabbar.entry.js?a911:114)
    at new Tabbar (taro-tabbar.entry.js?a911:274)
    at eval (core-de9c9c2d.js?5c89:1592)
    at step (core-de9c9c2d.js?5c89:45)
    at Object.eval [as next] (core-de9c9c2d.js?5c89:26)
    at fulfilled (core-de9c9c2d.js?5c89:17)

TypeError: Cannot read property 'map' of undefined
    at Tabbar.render (taro-tabbar.entry.js?a911:344)
    at callRender (core-de9c9c2d.js?5c89:1289)
    at updateComponent (core-de9c9c2d.js?5c89:1253)
    at Array.update (core-de9c9c2d.js?5c89:1210)
    at consumeTimeout (core-de9c9c2d.js?5c89:161)
    at flush (core-de9c9c2d.js?5c89:184)

TypeError: Cannot read property 'forEach' of undefined
    at Tabbar.getSelectedIndex (taro-tabbar.entry.js?a911:143)
    at Tabbar.routerChangeHandler (taro-tabbar.entry.js?a911:191)
    at Tabbar.componentDidLoad (taro-tabbar.entry.js?a911:326)
    at safeCall (core-de9c9c2d.js?5c89:1369)
    at postUpdateComponent (core-de9c9c2d.js?5c89:1310)
    at postUpdate (core-de9c9c2d.js?5c89:1276)
    at updateComponent (core-de9c9c2d.js?5c89:1278)
    at Array.update (core-de9c9c2d.js?5c89:1210)
    at consumeTimeout (core-de9c9c2d.js?5c89:161)
    at flush (core-de9c9c2d.js?5c89:184)

期望结果

实际结果

环境信息

Taro v3.0.14


  Taro CLI 3.0.14 environment info:
    System:
      OS: Windows 7
    Binaries:
      Node: 12.18.4 - C:\Program Files\nodejs\node.EXE
      npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD

3.0.10正常,之后几个版本都这样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

1 participant