ngx-translate / core

The internationalization (i18n) library for Angular
MIT License
4.48k stars 571 forks source link

stream method throw an error at runtime with rxjs6 #840

Open tleveque23 opened 6 years ago

tleveque23 commented 6 years ago

I'm submitting a ... (check one with "x")

[X] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

Current behavior When updating from rxjs 5.x to v6 I am now getting an error at runtime when using the stream method: "You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable" If I just replace the method with "get(...)" everything work.... except that I need the stream method to handle lang changes.

Expected/desired behavior Should work fine like with version 5.x

Reproduction of the problem https://stackblitz.com/edit/github-bxdtuz?file=src%2Fapp%2Fapp.component.ts

What is the expected behavior?

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

ocombe commented 6 years ago

Only ngx translate v10 supports rxjs 6, and it's for angular 6, there is no release for v5 and rxjs 6, sorry.