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

Bug: Tests failing with Angular 15.2.2 #5118

Closed
lgpage opened this issue Mar 9, 2023 · 3 comments · Fixed by #5126
Closed

Bug: Tests failing with Angular 15.2.2 #5118

lgpage opened this issue Mar 9, 2023 · 3 comments · Fixed by #5126
Assignees
Labels
bug Something isn't working released v14.7.1

Comments

@lgpage
Copy link

lgpage commented Mar 9, 2023

Description of the bug

Tests are failing when upgrading to Angular to v15.2.2

See

Error:
./node_modules/ng-mocks/index.mjs:879:27-92 - Error: export 'ɵivyEnabled' (imported as '__WEBPACK_EXTERNAL_MODULE__angular_core_bcead0df__') was not found in '@angular/core' (possible exports:

It looks like the eivyEnabled const has been removed: angular/angular@15.2.1...15.2.2#diff-2b5852df25d6ad975ee77aa156106f45e8b17465fd64a0569ef0ed49e3b3a3f0L40

@lgpage lgpage added the bug Something isn't working label Mar 9, 2023
@satanTime
Copy link
Member

Thank you for the report.

I'll take a look on the weekend.

@logancooper-tylertech
Copy link

logancooper-tylertech commented Mar 9, 2023

We are also seeing this issue. It looks like ng-mocks was referencing what appears to be an internal variable in angular, which got removed in 15.2.2.

From packages/core/src/core_private_export.ts in the angular project:

// TODO(alxhub): allows tests to compile, can be removed when tests have been updated.
export const ɵivyEnabled = true;

Which was removed by commit angular/angular@6b9ec0b as part of merging the PR angular/angular#49296

@satanTime
Copy link
Member

v14.7.1 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released v14.7.1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants