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

TieredMenu: rootmenu coming as undefined for 'onOverlayAnimationStart' #13812

Closed
ShrutiBaghel opened this issue Oct 5, 2023 · 2 comments
Closed
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@ShrutiBaghel
Copy link

Describe the bug

While running all the specs in jasmine-karma framework I get an error,
ERROR: 'ERROR', TypeError: Cannot read properties of undefined (reading 'sublistViewChild')
TypeError: Cannot read properties of undefined (reading 'sublistViewChild')
at TieredMenu.onOverlayAnimationStart

This has been started from primeng version 16.1.0 and not before that.
As it doesn't talk about any particular spec file in my application instead navigates to zone.testing I am not sure how to go ahead with it.

Environment

angular version 16.2.6
primeng version 16.4.1

Reproducer

No response

Angular version

16.2.6

PrimeNG version

16.4.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.19.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@ShrutiBaghel ShrutiBaghel added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 5, 2023
@ShrutiBaghel ShrutiBaghel changed the title TieredMenu: rootmenu comaing as undefined for 'onOverlayAnimationStart' TieredMenu: rootmenu coming as undefined for 'onOverlayAnimationStart' Oct 5, 2023
@Kateriine
Copy link

Kateriine commented Mar 19, 2024

For my concern I could solve it with this (standalone components) - Source

describe('SomeComponent', () => {

  const fakeActivatedRoute = {
    snapshot: { data: { ... } }
  } as ActivatedRoute;

  beforeEach(async(() => {
    TestBed.configureTestingModule({ 
      declarations: [ SomeComponent ],
      providers: [ {provide: ActivatedRoute, useValue: fakeActivatedRoute} ],
    })
    .compileComponents();
  }));
});

@ShrutiBaghel
Copy link
Author

The problem was with my specs, found the issue hence closing. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants