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

@angular/flex-layout/flex-layout"' has no exported member 'ObservableMedia' #989

Closed
SamuelMarks opened this issue Jan 14, 2019 · 7 comments

Comments

@SamuelMarks
Copy link
Contributor

Bug Report

What is the expected behavior?

Project works as is, even after upgrading @angular/flex-layout from 7.0.0-beta.22 to 7.0.0-beta.23.

What is the current behavior?

error TS2305: Module '"../../../node_modules/@angular/flex-layout/flex-layout"' has no exported member 'ObservableMedia'.

What are the steps to reproduce?

Providing a StackBlitz (or similar) is the best way to get the team to see your issue.

What is the use-case or motivation for changing an existing behavior?

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

Also upgraded Angular to 7.2.0 and TypeScript to 3.2.2.

Is there anything else we should know?

@CaerusKaru
Copy link
Member

CaerusKaru commented Jan 14, 2019

ObservableMedia was deprecated in 7.0.0-beta.19 and removed in 7.0.0-beta.23. Please use the nearly identical MediaObserver instead and consult the docs and CHANGELOG

@SamuelMarks
Copy link
Contributor Author

Thanks, media$ rather than asObservable() did the trick with that one

@CaerusKaru
Copy link
Member

No problem, though be advised that we may add/revert to the asObservable syntax in the future (with proper deprecation path notice in advance), because we realized the media$ transition isn't the most graceful.

@AlbertoMontalesi
Copy link

Might be worth changing the documentation here https://github.com/angular/flex-layout/blob/master/docs/documentation/ObservableMedia.md to reflect this change.

@ftenafmar
Copy link

in case you need more info:
https://github.com/angular/flex-layout/wiki/MediaObserver

@drelbert
Copy link

Thank you both SamuelMarks and CaerusKaru both. Solved my problem perfectly.

@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 5, 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

5 participants