question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

angular 9.0.0-rc.2 Cannot read property 'onDestroy' of undefined

See original GitHub issue

I’m using nrwl NX and jest. When I run jest I’m getting

TypeError: Cannot read property 'onDestroy' of undefined


node_modules/@ngneat/until-destroy/bundles/ng:/@ngneat/until-destroy/lib/until-destroy.ts:32:48
at Object.__decorate (../../../../node_modules/tslib/tslib.js:93:99)

Has anything changed in the latests RC’s that could cause this to happen?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
0x6368656174commented, Mar 3, 2020

This lib really useful, but we had to remove because of this bug.

2reactions
NetanelBasalcommented, Nov 21, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular ERROR TypeError: Cannot read properties of ...
Angular is sometimes showing error ERROR TypeError: Cannot read properties of undefined (reading 'onDestroy'). I am getting this error when ...
Read more >
Cannot read properties of undefined (reading 'onDestroy')
Fixing ERROR TypeError: Cannot read properties of undefined (reading 'onDestroy') ... This error can occur in an Angular project and is pretty hard...
Read more >
The AI Search Engine You Control
TypeError : Cannot read property '0' of undefined when reading params of ActivatedRoute - Angular 6 testing in Jasmine/Karma. Asked Oct 29, 2018...
Read more >
"Cannot read property 'CommandTypes' of undefined" when ...
"Cannot read property 'CommandTypes' of undefined" when starting angular service with non-bundled ... same with angular 7.0.0-rc.1/typescript-3.1.2 on
Read more >
ERROR TypeError: Cannot read properties of undefined ...
0 Please I need some help with angular I am trying to perform serverSide pagination integrate but no matter how many iterations of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found