akserg / ng2-slim-loading-bar

Angular 2 component shows slim loading bar at the top of the page.
MIT License
359 stars 92 forks source link

angular6 support #67

Open shootermv opened 6 years ago

shootermv commented 6 years ago

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

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

Current behavior when installling on angular6 getting compilation error : 'Observable is not a member of rxjs/Observable' or 'Subject is not a member of rxjs/Observable '

Expected/desired behavior No errors should be

Reproduction of the problem Create project with recent @angular/cli@6.0.0 Install the ng2-slim-loading-bar run "ng serve" getting compilation error

What is the expected behavior?

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

Please tell us about your environment:

imranmomin commented 6 years ago

@shootermv created a PR for the issue. Until it gets accepted, you can use npm install --save rxjs-compat which support old import statements

https://www.npmjs.com/package/rxjs-compat

YoeriVD commented 6 years ago

+1

alexandredavi commented 6 years ago

+1

Sesa1988 commented 6 years ago

its only a temporary solution and the compat package will be deprecated in angular 7

devakone commented 6 years ago

Any updates to work with 6 yet?

robvaneck commented 6 years ago

+1 (will use another plug-in if angular / rxjs 6 is not supported yet)

pawanaraballi commented 6 years ago

Any updates on Angular 6 support?

rahul230691 commented 6 years ago

Any updates with Angular 6 support? I am getting below exception on compile time.

ERROR in node_modules/ng2-slim-loading-bar/src/slim-loading-bar.service.d.ts(1,10): error TS2305: Module '"../node_modules/rxjs/Observable"' has no exported member 'Observable'. node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.

Any help much appreciated

devs4522 commented 5 years ago

@imranmomin Is angular 6 support completed ? Still getting compilation error : 'Observable is not a member of rxjs/Observable' or 'Subject is not a member of rxjs/Observable '.

Please provide an update- so that i can decide whether i should use this or not.