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: Taro.stopPullDownRefresh is not a function #17398

Open
starNGC2237 opened this issue Mar 6, 2025 · 1 comment

Comments

@starNGC2237
Copy link

相关平台

H5

复现仓库

https://github.com/starNGC2237/mini_error.git
**浏览器版本: chrome 134.0.6998.36(正式版本) (64 位)**小程序基础库: /
使用框架: React

复现步骤

npm run dev:h5
在打开的网页下拉,报错TypeError: Taro.stopPullDownRefresh is not a function

期望结果

正确关闭下拉刷新

实际结果

下拉刷新未关闭,控制台报错

环境信息

👽 Taro v4.0.9


  Taro CLI 4.0.9 environment info:
    System:
      OS: Windows 11 10.0.26100
    Binaries:
      Node: 20.18.3 - C:\Program Files\nodejs\node.EXE
      npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 4.0.9 => 4.0.9
      @tarojs/components: 4.0.9 => 4.0.9
      @tarojs/helper: 4.0.9 => 4.0.9
      @tarojs/plugin-framework-react: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-alipay: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-h5: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-harmony-hybrid: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-jd: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-qq: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-swan: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-tt: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-weapp: 4.0.9 => 4.0.9
      @tarojs/react: 4.0.9 => 4.0.9
      @tarojs/runtime: 4.0.9 => 4.0.9
      @tarojs/shared: 4.0.9 => 4.0.9
      @tarojs/taro: 4.0.9 => 4.0.9
      @tarojs/vite-runner: 4.0.9 => 4.0.9
      babel-preset-taro: 4.0.9 => 4.0.9
      eslint-config-taro: 4.0.9 => 4.0.9
      react: ^18.0.0 => 18.3.1

@starNGC2237 starNGC2237 changed the title h5报错:TypeError: Taro.stopPullDownRefresh is not a function h5下拉刷新报错:TypeError: Taro.stopPullDownRefresh is not a function Mar 6, 2025
This was referenced Mar 8, 2025
@StepToTop
Copy link
Contributor

要不手动封装一下stopPullDownRefresh先吧

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

2 participants