-
Notifications
You must be signed in to change notification settings - Fork 100
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
angular 9.0.0-rc.2 Cannot read property 'onDestroy' of undefined #42
Comments
Update I forked and updated until-destroy to the latest angular rc release, but the tests work, so it hasn't got anything to do with angular/core. Nx uses the library jest-preset-angular has released a version 8.0.0, but nx still hasn't updated to that version, so that might fix it. The only thing i can think of is that But I'm not sure how to get around it, or if I just have to wait for nx to catch up to angular 9. :( |
Hi, this is our peer dependencies requirements: "peerDependencies": {
"@angular/core": ">=9.0.0-next.10"
} So I guess you'll have to wait or use the older version. |
I have some issue when try run my app in storybook. I can't use old version, because i use Ivy. |
This lib really useful, but we had to remove because of this bug. |
We have the same issue in storybook using Ivy |
For some reason, Storybook doesn't use Angular Ivy with my setup and I had the same error. I added postinstall script with ngcc option to package.json according to the official docs and now everything works well. P.S. to check if Ivy enabled you can import it from angular/core import { Component, OnInit, ɵivyEnabled as ivyEnabled, OnDestroy } from '@angular/core';
ngOnInit(): void {
console.log('ivyEnabled', ivyEnabled);
} |
I'm using nrwl NX and jest.
When I run jest I'm getting
Has anything changed in the latests RC's that could cause this to happen?
The text was updated successfully, but these errors were encountered: