Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

taro react-hook h5 没有找到页面实例。 #12432

Closed
kaifa-yang opened this issue Sep 3, 2022 · 3 comments
Closed

taro react-hook h5 没有找到页面实例。 #12432

kaifa-yang opened this issue Sep 3, 2022 · 3 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@kaifa-yang
Copy link

相关平台

微信小程序

复现仓库

https://github.com/kaifa-yang/taro-react-.git
小程序基础库: 1.0.0
使用框架: React

复现步骤

终端 npm run dev:h5
运行或者刷新就会碰到错误

期望结果

正常运行,不会再出现没有找到页面实例

实际结果

目前无法解决运行刷新就报错-且同时无法渲染
得在代码中任意改动保存-->不刷新->能刷新

环境信息

Taro CLI 3.5.5 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 16.13.2 - D:\node.EXE
      Yarn: 1.22.17 - C:\Users\人生赢家\AppData\Roaming\npm\yarn.CMD
      npm: 8.1.2 - D:\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Sep 3, 2022
@kaifa-yang
Copy link
Author

救救孩子,已经碰壁几天了。

@TheKonka
Copy link
Member

TheKonka commented Sep 4, 2022

#12416 也是报 这个错误

@ZakaryCode ZakaryCode added T-h5 Target - 编译到 H5 and removed T-weapp Target - 编译到微信小程序 labels Sep 8, 2022
@ZakaryCode
Copy link
Contributor

入口文件书写错误,不需要传入页面组件

function App(props) {
  // props.children 是将渲染的页面实例,缺少将导致错误
  return props.children
}

export default App

@NervJS NervJS locked and limited conversation to collaborators Sep 15, 2022
@ZakaryCode ZakaryCode converted this issue into discussion #12495 Sep 15, 2022
@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

3 participants