-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Menubar | ReferenceError: Cannot access 'Menubar' before initialization #13024
Comments
I have the same issue after upgrading to primeng 15.4.1 and Angular 15.2.9. The application builds and runs fine, but when executing tests via Jest, I get hit with Update: I'm not experiencing the issue on primeng 15.3.0 |
Hi, I have the same issue but with the PanelMenu. I've been searching in the Prime issues and I found the same issue in #11931 but there isn't a real solution. My primeng version is 15.4.1. Do you recommend downgrade the primeng version?
|
+1 on |
Another one for splitbutton #12945 |
This is still an issue in |
@cetincakiroglu this bug is blocking basically any usage of Menu module. Including split button module. From 15.4.1 and up. |
Thanks for reporting, we're investigating the issue. Possible fix would be available 16.0.0 or 16.0.1 release. |
Hi, `Test suite failed to run
` |
Hello, we have experienced the same problem when migrating from Angular 14 and PrimeNG 14 to Angular 15.2.9 and PrimeNG 15.4.1. A workaround for us is to use PrimeNG 15.3.0. But of course we would like to get also the fixes and enhancements made ein 15.4.x. Is there a change that a fix is available also for 15.4.x? |
The issue still appears in 16.0.2 |
I am attempting to create a repro for another issue in StackBlitz but am getting the following:
I am tryng to update the repro template to use the latest PrimeNG (16.1.0) but it won't render my I'm not dealing with a context menu at all. |
The issue spread to ContextMenuModule with commit #f4f3598 constructor(@Inject(forwardRef(() => ContextMenu)) contextMenu: ContextMenu) constructor(...., public contextMenu: ContextMenu) |
Hi, We're currently working on accessibility and in this process, we are refactoring & reworking all of the components, because of that all tests need to be refactored afterwards. I'm moving this issue to 16.Future milestone and after we finalize accessibility implementation we'll take this issue into consideration while we fixing the tests. Thanks for reporting the issue! |
Hi @cetincakiroglu, Thanks |
I still am having trouble trying to get a Stackblitz up and running for version 16. All of the dependencies are where they should be, but the error I am seeing now is:
No menus are being used ... in fact the template is completely empty. The call stack seems to originate in primeng-splitbutton.mjs before failing in tieredmenu.mjs?
|
Still having issues with PanelMenu in Angular 16, primeng 16.9 |
The primeNG version 15.2.1 was the last version where this issue primefaces/primeng#13024 was not occuring for us Before upgrading this version, please check if the tests are running with npx nx affected -t test --configuration=ci --skip-nx-cache
* feat: P002271-6127 emit SearchConfig * feat: add additionalToolBarActions to page header and to search header * feat: hardcoded search config as a template and provided with translations * feat: test harness adapted and tests added * fix: remove unused imports and variables * fix: rename defaultTranslationKey to placeholderKey * fix: adaption of the action version * fix: change primeng version back * fix: downgrading primeNG version The primeNG version 15.2.1 was the last version where this issue primefaces/primeng#13024 was not occuring for us Before upgrading this version, please check if the tests are running with npx nx affected -t test --configuration=ci --skip-nx-cache * fix: add missing test to check if the dropdown disappears when the searchconfig is empty
+1 for 15.4.0 :( . Downgrading to 15.3.0 solves the issue p.s. thanks for the great library |
Description
Existing tests fail with the following error
ReferenceError: Cannot access 'Menubar' before initialization
Environment
Windows Jest tests
Angular Version
15.2.3
Primeng Version
15.4.0
Build / Runtime
Angular CLI App
Language
TypeScript
Steps to Reproduce
Expected behavior
Exoect the tests to run without the error in subject.
The text was updated successfully, but these errors were encountered: