rxjs icon indicating copy to clipboard operation
rxjs copied to clipboard

Issue with rxjs-compat

Open policz opened this issue 8 years ago • 4 comments

I have an with issue with rxjs-compat. currently i'm using Angular 6 . my rxjs version 6.2.2

ERROR in node_modules/ngx-editor/app/ngx-editor/common/services/message.service. d.ts(1,10): error TS2305: Module '"C:/Users/frontend/node_modules/rx js/Observable"' has no exported member 'Observable'. node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs- compat/Observable'.

policz avatar Sep 06 '18 15:09 policz

@policz can you share your package.json please

pertrai1 avatar Sep 07 '18 15:09 pertrai1

npm i rxjs-compat should resolve your problem

Matvey1308 avatar Sep 10 '18 12:09 Matvey1308

I had the same problem. Installing rxjs-compat fixes it. Tested with rxjs 6.3.3

My humble opinion is that this issue can be closed.

StefanTT avatar Nov 19 '18 11:11 StefanTT

Closing this, as, in version 6, Observable should be imported from rxjs and not rxjs/Observable. The latter import location is the version 5 location and to continue to use that with version 7, rxjs-compat needs to be installed.

cartant avatar Nov 19 '18 11:11 cartant