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

rxjs Observable.create is deprecated #14785

Closed
pborunda opened this Issue Jan 10, 2019 · 0 comments

Comments

Projects
None yet
3 participants
@pborunda
Copy link

pborunda commented Jan 10, 2019

What is the expected behavior?

rxjs Observable.create is deprecated. Should instead call directly "new Observable()"
See references
ReactiveX/rxjs#3982
ReactiveX/rxjs@660133d

What is the current behavior?

I'm using the drag and drop function in my Angular project, built with ngc and Google Closure Compiler. Builds ok, but Observable.create is not an exported function so its showing as undefined during runtime.

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz starter: https://goo.gl/wwnhMV

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 7.1.3
Typescript 3.1.6
Closure Compiler v20181210
Rxjs 6.3.3

Is there anything else we should know?

@crisbeto crisbeto self-assigned this Jan 10, 2019

@andrewseguin andrewseguin added the P3 label Jan 10, 2019

@crisbeto crisbeto added the has pr label Jan 10, 2019

crisbeto added a commit to crisbeto/material2 that referenced this issue Jan 10, 2019

refactor: remove deprecated Observable.create usages
Replaces the `Observable.create` usages by using the `Observable` constructor directly, because `Observable.create` is being deprecated in the latest RxJS version.

Fixes angular#14785.

vivian-hu added a commit that referenced this issue Jan 14, 2019

refactor: remove deprecated Observable.create usages (#14789)
Replaces the `Observable.create` usages by using the `Observable` constructor directly, because `Observable.create` is being deprecated in the latest RxJS version.

Fixes #14785.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment