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

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

Closed
whyvrafvr opened this issue Sep 3, 2018 · 6 comments

Comments

@whyvrafvr
Copy link

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 :(

@alan-agius4
Copy link
Collaborator

The root cause is from rxjs.

Issue tracked:
ReactiveX/rxjs#4077

@whyvrafvr
Copy link
Author

Thanks. Keep waiting to be solved ;)

@whyvrafvr
Copy link
Author

Hi @alan-agius4.
I've cleaned the npm cache, removed the node_modules in order to start on a clean stuff but... the issue remains with rxjs 6.3.2.

Angular CLI: 6.1.5
Node: 8.11.3
OS: darwin x64
Angular: 6.1.7
... 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.7
@angular/cli 6.1.5
@angular/material 6.4.7
@angular/material-moment-adapter 6.4.7
@ngtools/webpack 6.0.8
@schematics/angular 0.7.5
@schematics/update 0.7.5
rxjs 6.3.2
typescript 2.9.2
webpack 4.8.3

@whyvrafvr whyvrafvr changed the title TypeError: sink._addParentTeardownLogic is not a function upgrading rxjs from 6.2 to 6.3 TypeError: sink._addParentTeardownLogic is not a function upgrading rxjs from 6.2.2 to 6.3.2 Sep 6, 2018
@whyvrafvr
Copy link
Author

@JorgeJoseAbad
Copy link

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 !!

mprahl added a commit to redhat-exd-rebuilds/estuary that referenced this issue Sep 18, 2018
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants