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 Uncaught TypeError: Cannot read property 'path' of null #6999

Closed
xQuotes opened this issue Jul 10, 2020 · 2 comments
Closed

H5 Uncaught TypeError: Cannot read property 'path' of null #6999

xQuotes opened this issue Jul 10, 2020 · 2 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@xQuotes
Copy link
Contributor

xQuotes commented Jul 10, 2020

相关平台

H5

复现仓库

const path = page.path

浏览器版本: Chrome 83
使用框架: React

复现步骤

const path = page.path

期望结果

不报错

实际结果

报错 Uncaught TypeError: Cannot read property 'path' of null

环境信息

 Taro v3.0.2


  Taro CLI 3.0.2 environment info:
    System:
      OS: macOS 10.14.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.9.0 - /usr/local/bin/node
      Yarn: 1.16.0 - /usr/local/bin/yarn
      npm: 6.14.5 - /usr/local/bin/npm
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Jul 10, 2020
@Chen-jj Chen-jj closed this as completed Jul 30, 2020
@louiebb
Copy link

louiebb commented Dec 18, 2022

请问楼主,解决了吗?我也遇到了
image

image

@seekxz
Copy link

seekxz commented Mar 9, 2023

How to fix this problem.

@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

4 participants