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.

TypeError: sink._addParentTeardownLogic is not a function upgrading rxjs from 6.2.2 to 6.3.2

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

ng version: Angular CLI: 6.1.5 Node: 8.11.3 OS: darwin x64 Angular: 6.1.6 … animations, common, compiler, compiler-cli, core, forms … http, language-service, platform-browser … platform-browser-dynamic, router, service-worker

Package Version

@angular-devkit/architect 0.6.8 @angular-devkit/build-angular 0.6.8 @angular-devkit/build-optimizer 0.6.8 @angular-devkit/core 0.6.8 @angular-devkit/schematics 0.7.5 @angular/cdk 6.4.6 @angular/cli 6.1.5 @angular/material 6.4.6 @angular/material-moment-adapter 6.4.6 @ngtools/webpack 6.0.8 @schematics/angular 0.7.5 @schematics/update 0.7.5 rxjs 6.3.1 typescript 2.9.2 webpack 4.8.3

The log given by the failure

ng serve -o will fail with error:

/mypath/webapp/node_modules/rxjs/internal/Observable.js:27 sink._addParentTeardownLogic(this.source || (config_1.config.useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ? ^

TypeError: sink._addParentTeardownLogic is not a function at Observable.subscribe (/mypath/webapp/node_modules/rxjs/internal/Observable.js:27:18) at MergeMapOperator.call (/mypath/webapp/node_modules/@angular-devkit/build-angular/node_modules/rxjs/internal/operators/mergeMap.js:35:23) at Observable.subscribe (/mypath/webapp/node_modules/rxjs/internal/Observable.js:24:22) at MapOperator.call (/mypath/webapp/node_modules/@angular-devkit/build-angular/node_modules/rxjs/internal/operators/map.js:29:23) at Observable.subscribe (/mypath/webapp/node_modules/rxjs/internal/Observable.js:24:22) at /mypath/webapp/node_modules/@angular-devkit/build-angular/node_modules/rxjs/internal/util/subscribeToObservable.js:10:20 at Object.subscribeToResult (/mypath/webapp/node_modules/@angular-devkit/build-angular/node_modules/rxjs/internal/util/subscribeToResult.js:7:45) at MergeMapSubscriber._innerSub (/mypath/webapp/node_modules/@angular-devkit/build-angular/node_modules/rxjs/internal/operators/mergeMap.js:75:38) at MergeMapSubscriber._tryNext (/mypath/webapp/node_modules/@angular-devkit/build-angular/node_modules/rxjs/internal/operators/mergeMap.js:72:14) at MergeMapSubscriber._next (/mypath/webapp/node_modules/@angular-devkit/build-angular/node_modules/rxjs/internal/operators/mergeMap.js:55:18) at MergeMapSubscriber.Subscriber.next (/mypath/webapp/node_modules/@angular-devkit/build-angular/node_modules/rxjs/internal/Subscriber.js:64:18) at TapSubscriber._next (/mypath/webapp/node_modules/@angular-devkit/build-angular/node_modules/rxjs/internal/operators/tap.js:62:26) at TapSubscriber.Subscriber.next (/mypath/webapp/node_modules/@angular-devkit/build-angular/node_modules/rxjs/internal/Subscriber.js:64:18) at portfinder.getPort (/mypath/webapp/node_modules/@angular-devkit/build-angular/src/angular-cli-files/utilities/check-port.js:26:21) at /mypath/webapp/node_modules/portfinder/lib/portfinder.js:160:14 at /mypath/webapp/node_modules/portfinder/node_modules/async/lib/async.js:52:16

Mention any other details that might be useful

I’ve checked if there were a standalone declaration (import) of Observables, map() or tap() but nothing at all 😦

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
JorgeJoseAbadcommented, Sep 6, 2018

Hi again: from #4070 with instructions from @skonx I’ve resolved… Now my package.json is “dependencies”: { “@angular/animations”: “^6.1.7”, “@angular/common”: “^6.1.7”, “@angular/compiler”: “^6.1.7”, “@angular/core”: “^6.1.7”, “@angular/forms”: “^6.1.7”, “@angular/http”: “^6.1.7”, “@angular/platform-browser”: “^6.1.7”, “@angular/platform-browser-dynamic”: “^6.1.7”, “@angular/router”: “^6.1.7”, “@ng-bootstrap/ng-bootstrap”: “^3.2.0”, “bootstrap”: “^4.1.3”, “chart.js”: “^2.7.2”, “core-js”: “^2.4.1”, “jquery”: “^3.3.1”, “ng2-charts”: “^1.6.0”, “popper.js”: “^1.14.4”, “rxjs”: “^6.2.2”, “rxjs-compat”: “^6.2.2”, “zone.js”: “^0.8.14” }, “devDependencies”: { “@angular-devkit/build-angular”: “^0.7.5”, “@angular/cli”: “^6.1.5”, “@angular/compiler-cli”: “^6.1.7”, “@angular/language-service”: “^6.1.7”, “@types/jasmine”: “~2.5.53”, “@types/jasminewd2”: “~2.0.2”, “@types/node”: “^6.0.117”, “codelyzer”: “^4.0.1”, “jasmine-core”: “~2.6.2”, “jasmine-spec-reporter”: “~4.1.0”, “karma”: “^2.0.5”, “karma-chrome-launcher”: “~2.1.1”, “karma-cli”: “~1.0.1”, “karma-coverage-istanbul-reporter”: “^1.2.1”, “karma-jasmine”: “~1.1.0”, “karma-jasmine-html-reporter”: “^0.2.2”, “protractor”: “^5.4.0”, “ts-node”: “~3.2.0”, “tslint”: “~5.7.0”, “typescript”: “~2.9.2” }

and it work…

(also: I’ve updated codelyzer to 4.0.1 for an unrelated warn with update of Angular 5 to angular 6).

Tank you @skonx !!

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Breaking Changes in Version 7 - RxJS
However, TypeScript users might see complaints about lift not being a member of observable. To workaround this issue there are two things you...
Read more >
Upgrade rxjs 6: this._subscribe is not a function at ...
The code must be updated in order to work with rxjs6. Here is the reason why PromiseObservable fails:.
Read more >
Ionic 3 TypeError:_rxjs_Observable__.Observable.fromEvent ...
Observable.fromEvent is not a function at new SuperTabs (super-tabs.js:136) at createClass (core.js:18377) at createDirectiveInstance (core.js: ...
Read more >
RxJS 6: What's new and what has changed? - Auth0
Limitations of Upgrading to RxJS with rxjs-compat. There are only two breaking changes that are not covered by the rxjs-compat package: ...
Read more >
6.3.2 - rxjs - npm
MIGRATION AND RELEASE INFORMATION: Find out how to update to v6, automatically update your TypeScript code, and more! Current home is MIGRATION.
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