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

What version of rxjs should I use in my Angular 4 client #630

Open
2 tasks
redaikidoka opened this issue Dec 17, 2018 · 2 comments
Open
2 tasks

What version of rxjs should I use in my Angular 4 client #630

redaikidoka opened this issue Dec 17, 2018 · 2 comments

Comments

@redaikidoka
Copy link

What type of issue are you creating?

  • [x ] Question

What version of this module are you using?

  • 2.0.10 (Stable)
  • 2.1.0-rc.n (2.1 Release Candidate n)
  • [x ] 2.3.1

Write other if any:

Please add a description for your issue:

I'm upgrading from an old version of the builder "@mean-expert/loopback-sdk-builder": "2.1.0-rc.9",
to 2.3.1 (the current version)

In my angular 4 client, I've been using rxjs 5.4.3, but I get errors like:
datasdk/services/core/error.service.ts (4,22): Module '"/node_modules/rxjs/Rx"' has no exported member 'throwError'

I've tried the latest rxjs releases from 6 up, but can't seem to find one that builds.

Any suggestions? Is this in the docs somewhere and I missed it?

@Nosfistis
Copy link
Contributor

You should use RxJS 6+ and change your usage to that.

@Amenocy
Copy link

Amenocy commented Jan 26, 2019

when compile with webpack , rxjs 6.3

TypeError: (0 , _rxjs.from)(...).map is not a function
    at MemberApi.request (base.service.js:146)

for this code :

 return from(request)
        .map((res) => res.data)
        .catch((e) => errorHandler.handleError(e));

i have this line but it seems not working
import { mergeMap, delay, map, catchError } from 'rxjs/operators';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants