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

Error: 没有找到页面实例。 #8902

Closed
zuozhea opened this issue Mar 15, 2021 · 7 comments
Closed

Error: 没有找到页面实例。 #8902

zuozhea opened this issue Mar 15, 2021 · 7 comments
Labels
T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@zuozhea
Copy link

zuozhea commented Mar 15, 2021

相关平台

微信小程序

小程序基础库: 2.16.0
使用框架: Nerv

复现步骤

==>app.js

import Nerv, { Component } from 'nervjs';
import { Provider } from '@tarojs/redux';
import configStore from './store';
import { AtTabBar } from 'taro-ui'
import './app.less';

const store = configStore();
class App extends Component {

componentDidMount() {
console.log(Provider, store)
}

componentDidShow() { }

componentDidHide() { }

componentDidCatchError() { }

render() {
return (

111

)
}
}

export default App

期望结果

希望刻印正常运行

实际结果

页面挂了

环境信息



👽 Taro v3.0.7

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

  Taro CLI 3.0.7 environment info:
    System:
      OS: macOS 11.2.2
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.3.0 - /usr/local/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 6.14.5 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.0.7 => 3.0.7 
      @tarojs/components: 3.0.7 => 3.0.7 
      @tarojs/mini-runner: 3.0.7 => 3.0.7 
      @tarojs/runtime: 3.0.7 => 3.0.7 
      @tarojs/taro: 3.0.7 => 3.0.7 
      @tarojs/webpack-runner: 3.0.7 => 3.0.7 
      babel-preset-taro: 3.0.7 => 3.0.7 
      eslint-config-taro: 3.0.7 => 3.0.7 
      nerv-devtools: ^1.5.7 => 1.5.7 
      nervjs: ^1.5.0 => 1.5.7 
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.10 
@taro-bot2 taro-bot2 bot added F-nerv T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Mar 15, 2021
@zuozhea
Copy link
Author

zuozhea commented Mar 15, 2021

image

@ntop001
Copy link

ntop001 commented Jun 14, 2021

@zuozhea 楼主问题解决了没,遇到类似问题。

@Ttou
Copy link

Ttou commented Jul 9, 2021

vue2 按照官方文档写 app.js 也有这个问题,不能用 new Vue 包装

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 9, 2021

@Ttou 文档应该已经更新了:

image

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 9, 2021

@zuozhea @ntop001 改用 react 咯

@Chen-jj Chen-jj closed this as completed Jul 9, 2021
@kaifa-yang
Copy link

如果用react呢,入口组件该怎么改才能避免这种情况

@Chen-jj
Copy link
Contributor

Chen-jj commented Sep 3, 2022

如果用react呢,入口组件该怎么改才能避免这种情况

@kaifa-yang 新建一条 issue 并提供一下 demo 看看咯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

5 participants