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

ReferenceError: Cannot access 'pageWrapper' before initialization #411

Closed
2011ci opened this issue Mar 20, 2023 · 5 comments
Closed

ReferenceError: Cannot access 'pageWrapper' before initialization #411

2011ci opened this issue Mar 20, 2023 · 5 comments

Comments

@2011ci
Copy link

2011ci commented Mar 20, 2023

版本号:

当前版本

问题描述:

打开页面一直转圈,不定期就弹出这个所有列表页面均无法显示
ReferenceError: Cannot access 'pageWrapper' before initialization
at index.ts:7:40

截图&代码:

image

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
@Mr-Vash
Copy link

Mr-Vash commented Apr 7, 2023

3.5版本同问,出现这种情况之后,改下页面(比如去掉一个空格)热更新之后就又好了

@zhangdaiscott
Copy link
Member

可能是热部署的问题

@zhangdaiscott
Copy link
Member

重启就好了

@zhangdaiscott zhangdaiscott reopened this Apr 26, 2023
@tawen
Copy link

tawen commented Apr 26, 2023

这个问题我也遇到并且解决,是因为模块循环引用导致的这个问题。
image
解决方法:
1、添加setTimeout:
image
2、export const PageWrapperFixedHeightKey = 'PageWrapperFixedHeight'这段代码拆到新文件中
image

@zhangdaiscott
Copy link
Member

3Q

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

4 participants