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

在部分x5内核的浏览器上会报Uncaught TypeError: undefined is not a function #3069

Closed
hahaiamzd opened this issue May 16, 2019 · 6 comments
Assignees
Labels

Comments

@hahaiamzd
Copy link

@hahaiamzd hahaiamzd commented May 16, 2019

问题描述
在华为旧机型自带的浏览器和在qq浏览器app下,浏览的页面是空白页,通过spy-debugger得到错误:Uncaught TypeError: undefined is not a function.

附:手机浏览器UA信息
Mozilla/5.0(Linux;Android 5.1;zh-cn;
HUAWEI CUN-TL00 Build/CUN-TL00)
AppleWebKit/537.36(KHTML,like Geoko)
Version/4.0 Mobile Safari/537.36

复现步骤
①用Android模拟器上安装qq浏览器HD版本
②访问http://h5.test.hengqihj.com

如需要查看报错信息,则安装spy-debugger,根据教程操作即可查看到报错信息。

期望行为
希望能正常访问。

报错信息

Uncaught TypeError: undefined is not a function.

系统信息
Taro CLI 1.2.26 environment info:
System:
OS: macOS 10.14.3
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.2.0 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
npmPackages:
@tarojs/async-await: 1.2.26 => 1.2.26
@tarojs/components: 1.2.26 => 1.2.26
@tarojs/plugin-babel: 1.2.26 => 1.2.26
@tarojs/plugin-csso: 1.2.26 => 1.2.26
@tarojs/plugin-sass: 1.2.26 => 1.2.26
@tarojs/plugin-uglifyjs: 1.2.26 => 1.2.26
@tarojs/redux: 1.2.26 => 1.2.26
@tarojs/redux-h5: 1.2.26 => 1.2.26
@tarojs/router: 1.2.26 => 1.2.26
@tarojs/taro: 1.2.26 => 1.2.26
@tarojs/taro-alipay: 1.2.26 => 1.2.26
@tarojs/taro-h5: 1.2.26 => 1.2.26
@tarojs/taro-swan: 1.2.26 => 1.2.26
@tarojs/taro-tt: 1.2.26 => 1.2.26
@tarojs/taro-weapp: 1.2.26 => 1.2.26
@tarojs/webpack-runner: ^1.2.26 => 1.2.26
eslint-config-taro: 1.2.26 => 1.2.26
eslint-plugin-taro: 1.2.26 => 1.2.26
nervjs: ^1.3.9 => 1.3.13
补充信息

@taro-bot

This comment has been minimized.

Copy link

@taro-bot taro-bot bot commented May 16, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@yuche yuche added the H5 label May 17, 2019
@taro-bot

This comment has been minimized.

Copy link

@taro-bot taro-bot bot commented May 17, 2019

CC @Littly

@Littly

This comment has been minimized.

Copy link
Contributor

@Littly Littly commented May 18, 2019

#3044 #2963 是同个问题 升级到1.3.0-beta.3试试

@hahaiamzd

This comment has been minimized.

Copy link
Author

@hahaiamzd hahaiamzd commented May 20, 2019

#3044 #2963 是同个问题 升级到1.3.0-beta.3试试

升级版本后重新打包还是会报同样的错误。

@Littly

This comment has been minimized.

Copy link
Contributor

@Littly Littly commented Jun 8, 2019

可以继续升级试试。有部分代码调用了findIndex,已经去掉。

@Littly Littly added the answered label Jun 8, 2019
@taro-bot taro-bot bot added the to be closed label Jun 8, 2019
@taro-bot

This comment has been minimized.

Copy link

@taro-bot taro-bot bot commented Jun 8, 2019

Hello~

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

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

Good luck and happy coding~

@taro-bot taro-bot bot removed the to be closed label Jun 10, 2019
@taro-bot taro-bot bot closed this Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.