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

编译H5版本,无法运行,一直报错 :TypeError: Cannot read property 'map' of undefined #4063

Closed
slxgsy opened this issue Aug 4, 2019 · 2 comments

Comments

@slxgsy
Copy link

slxgsy commented Aug 4, 2019

微信小程序 转成taro项目,再转H5版本。浏览器能正常浏览页面,但是一直报JS错误:
TypeError: Cannot read property 'map' of undefined
at ItemMatchTmpl.render (competition_competition.js:1)
at app.js:1
at errorCatcher (app.js:1)
at renderComponent (app.js:1)
at mountComponent (app.js:1)
at ComponentWrapper.init (app.js:1)
at createElement (app.js:1)
at mountChild (app.js:1)
at mountVNode$1 (app.js:1)
at createElement (app.js:1)

Taro CLI 1.3.11 environment info:
System:
OS: macOS High Sierra 10.13.6
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.7.0 - ~/.nvm/versions/node/v12.7.0/bin/node
npm: 6.10.0 - ~/.nvm/versions/node/v12.7.0/bin/npm
npmPackages:
@tarojs/components: 1.3.11 => 1.3.11
@tarojs/plugin-babel: 1.3.11 => 1.3.11
@tarojs/plugin-csso: 1.3.11 => 1.3.11
@tarojs/plugin-sass: 1.3.11 => 1.3.11
@tarojs/plugin-uglifyjs: 1.3.11 => 1.3.11
@tarojs/router: 1.3.11 => 1.3.11
@tarojs/taro: 1.3.11 => 1.3.11
@tarojs/taro-alipay: 1.3.11 => 1.3.11
@tarojs/taro-h5: 1.3.11 => 1.3.11
@tarojs/taro-qq: 1.3.11 => 1.3.11
@tarojs/taro-quickapp: 1.3.11 => 1.3.11
@tarojs/taro-swan: 1.3.11 => 1.3.11
@tarojs/taro-tt: 1.3.11 => 1.3.11
@tarojs/taro-weapp: 1.3.11 => 1.3.11
@tarojs/webpack-runner: 1.3.11 => 1.3.11
eslint-config-taro: 1.3.11 => 1.3.11
eslint-plugin-taro: 1.3.11 => 1.3.11
nerv-devtools: ^1.4.0 => 1.4.3
nervjs: ^1.4.0 => 1.4.3
stylelint-config-taro-rn: 1.3.11 => 1.3.11
stylelint-taro-rn: 1.3.11 => 1.3.11

@taro-bot
Copy link

taro-bot bot commented Aug 4, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@luckyadam
Copy link
Member

点进报错的代码调试一下,实在找不出问题把报错的代码截图贴出来

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

No branches or pull requests

3 participants