-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Table | ReferenceError: Cannot access 'ColumnFilter' before initialization #11931
Comments
We're seeing the same error running PrimeNG 14.1.0, Angular 14.2.1 on Node 16.17.0
|
Same here. This error was introduced with version v14.1.0, two days ago |
Getting the same, error. Reverting until fix is released. |
Any new news? |
I have the same problem. So @yamennassif, like you, when I moved ColumnFilter on top of the line for fesm2015 it was ok. |
@mo0om It is introduced cyclomatic dependency problem, not packager |
thank you @Delagen |
The problem stil occurs on PrimeNG v14.1.2 |
I was hoping to use primeng in a new project but I have the same error with ColumFilter when running tests. Tests are working with Karma, but not with Jest Angular version PrimeNG version As a workaround, modify primeng-table.mjs is ok Will you fix this problem in a next version ? |
Fixed #11931 - Table | ReferenceError: Cannot access 'ColumnFilter' before initialization
This issue is not resolved getting the same error with jest on version 14.1.2. Work around for jest users. Revert to version 14.0.1 and primeicons 5.0.0 |
Nobody said this. The fix is merged 2 days ago and v14.1.2 was released 22days ago. so it could never be fixed in that release 😉 |
Is there any idea when the next release is going to be ? |
Hello guys, |
We've encountered the same problem; upgrading to 14.2.3fixed it, it was released on 2022-12-14. I believe, this issue can be closed. |
Describe the bug
While running tests into my application i got the following error:
traced down the error in primeng-table.mjs
and the error was the class ColumnFilter was initiated after the call for it in the following line:
ColumnFilterFormElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: ColumnFilterFormElement, deps: [{ token: Table }, { token: ColumnFilter }], target: i0.ɵɵFactoryTarget.Component });
simply moving the class ColumnFilter 1 line before 4023 fixed the issue and everything worked.
Environment
Linux Jest tests.
Reproducer
No response
Angular version
14.0.1
PrimeNG version
14.1.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
17.8.0
Browser(s)
CLI
Steps to reproduce the behavior
Expected behavior
I expect that the problem is solved
The text was updated successfully, but these errors were encountered: