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

npm start gets dependency failure. Flexbox with rxjs #376

Closed
2 tasks
sakthiwd opened this issue Sep 7, 2018 · 2 comments
Closed
2 tasks

npm start gets dependency failure. Flexbox with rxjs #376

sakthiwd opened this issue Sep 7, 2018 · 2 comments
Labels

Comments

@sakthiwd
Copy link

sakthiwd commented Sep 7, 2018

I'm submitting a...

  • [x ] Bug report
  • Feature request
  • Documentation issue or request

Current behavior

ERROR in node_modules/@angular/flex-layout/core/typings/observable-media/observable-media.d.ts(11,14): error TS2416: Property 'subscribe' in type 'ObservableMedia' is not assignable to the same property in base type 'Subscribable'.
Type '(next?: (value: MediaChange) => void, error?: (error: any) => void, complete?: () => void) => Sub...' is not assignable to type '{ (observer?: PartialObserver): Unsubscribable; (next?: (value: MediaChange) => void...'.
Types of parameters 'next' and 'observer' are incompatible.
Type 'PartialObserver' is not assignable to type '(value: MediaChange) => void'.
Type 'NextObserver' is not assignable to type '(value: MediaChange) => void'.
Type 'NextObserver' provides no match for the signature '(value: MediaChange): void'.

Expected behavior

Success

Minimal reproduction of the problem with instructions

Tried up the following instructions as specied in ngx-rocket.
This happened when trying to "npm start".
Among my search, there is some conflicts between the flexlayout and rxjs. I have 6.30 version of rxjs right now

Environment

- generator version: 2.0.0
- node version: 9.10.0  <!-- run `node --version` -->
- npm version: 6.1.0  <!-- run `npm --version` -->
- OS:  Mac<!-- Mac, Linux, Windows -->

Others:

@ghost
Copy link

ghost commented Sep 9, 2018

Hi, some days ago i got a similar error after updating FlexLayoutModule to @latest

screen shot 2018-09-09 at 4 32 26 pm

And googling i find the solution, and was updating de typescript version from 2.7.2 to 2.9.2

screen shot 2018-09-09 at 4 32 50 pm

Hope this helps! 👍

@sinedied
Copy link
Member

See angular/flex-layout#827

To fix the issue:

  • Update TypeScript to ~2.9.2 as @akires47 said
  • Update @angular/flex-layout to ^6.0.0-beta.18
  • Update rxjs to ^6.3.2

And you should be good.

It should have been resolved anyway with the latest 5.1.0 generator version, so I'm closing this issue.

@sinedied sinedied added the bug label Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants