zone-patch-rxjs - Unsubscription error - Cannot read property 'apply' of null
See original GitHub issueI’m trying to implement a retry http interceptor for Angular 7.
Without import 'zone.js/dist/zone-patch-rxjs';
it works fine but when I add it, I get:
ERROR {"message":"1 errors occurred during unsubscription:\n1) TypeError: Cannot read property 'apply' of null","name":"UnsubscriptionError","errors":[{}]}
This is an example repo to reproduce the issue:
https://stackblitz.com/edit/angular-s3iv5u?file=polyfills.ts
Comment and uncomment the line import 'zone.js/dist/zone-patch-rxjs';
in polyfills.ts
to see the error appear and disappear.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:8 (3 by maintainers)
Top Results From Across the Web
rxjs - Angular 4, Observables, and "Cannot read property ...
I am trying to use observables, and I get an error saying "Cannot read property 'unsubscribe' of null". I am wondering where I...
Read more >Angular 7 - How to retry an http request on cer...anycodings
I'm trying to catch http request's errors anycodings_rxjs from an Angular interceptor and handle 401 anycodings_rxjs as logout while retrying a ...
Read more >Cannot read property 'unsubscribe' of null - ionic-v3
I developed an application with Ionic v3 to a university. It has several functionalities and works fine but when I run in develop...
Read more >Component testing scenarios - Angular
This guide explores common component testing use cases. ... Angular doesn't know that you set the input element's value property. It won't read...
Read more >cannot read properties of undefined (reading 'unsubscribe')
I recomend too use it when u have issues like this. import { PLATFORM_ID } from "@angular/core" ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@xinbaihui , thank you for the sample, I have created a PR https://github.com/angular/angular/pull/37091 to fix this one.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.