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

MegaMenu ReferenceError in Jest Test same as #12945 #13758

Closed
vespertilian opened this issue Sep 27, 2023 · 0 comments · Fixed by #13759
Closed

MegaMenu ReferenceError in Jest Test same as #12945 #13758

vespertilian opened this issue Sep 27, 2023 · 0 comments · Fixed by #13759
Milestone

Comments

@vespertilian
Copy link
Contributor

vespertilian commented Sep 27, 2023

Describe the bug

    ReferenceError: Cannot access 'MegaMenu' before initialization

       7 | } from '@angular/core';
       8 | import { CommonModule } from '@angular/common';
    >  9 | import { MegaMenuModule } from 'primeng/megamenu';
         | ^
      10 | import { MegaMenuItem, MenuItem } from 'primeng/api';
      11 | import { AvatarModule } from 'primeng/avatar';
      12 | import { MenuModule } from 'primeng/menu';

Fix is the same as this #13429 just for MegaMenu

Environment

Windows 11
NX monorepo
Jest

Reproducer

No response

Angular version

16.2.0

PrimeNG version

16.3.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.7.1

Browser(s)

No response

Steps to reproduce the behavior

Run jest specs

Expected behavior

No response

@vespertilian vespertilian added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 27, 2023
@cetincakiroglu cetincakiroglu removed the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 27, 2023
@cetincakiroglu cetincakiroglu added this to the 16.4.1 milestone Sep 27, 2023
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

Successfully merging a pull request may close this issue.

2 participants