Skip to content

ReferenceError: Cannot access 'pageWrapper' before initialization #6829

Closed
@2011ci

Description

@2011ci
版本号:

当前版本

问题描述:

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

截图&代码:

image

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

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

Activity

Mr-Vash

Mr-Vash commented on Apr 7, 2023

@Mr-Vash

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

zhangdaiscott

zhangdaiscott commented on Apr 12, 2023

@zhangdaiscott
Member

可能是热部署的问题

zhangdaiscott

zhangdaiscott commented on Apr 21, 2023

@zhangdaiscott
Member

重启就好了

tawen

tawen commented on Apr 26, 2023

@tawen

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

zhangdaiscott

zhangdaiscott commented on Apr 26, 2023

@zhangdaiscott
Member

3Q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zhangdaiscott@2011ci@tawen@Mr-Vash

        Issue actions

          ReferenceError: Cannot access 'pageWrapper' before initialization · Issue #6829 · jeecgboot/JeecgBoot