angular2-jwt icon indicating copy to clipboard operation
angular2-jwt copied to clipboard

Angular 7 Cannot find module 'rxjs-compat/Observable'.

Open ChristopherSmithHHBK opened this issue 8 years ago • 19 comments

Hello,

after updating to Angular 7 I have this issue: ERROR in node_modules/angular2-jwt/angular2-jwt.d.ts(3,10): error TS2305: Module '"C:/angular/ckf/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'.

Cheers

ChristopherSmithHHBK avatar Nov 07 '18 21:11 ChristopherSmithHHBK

Did you install the package rxjs-compat?

holzapfelnet avatar Nov 09 '18 20:11 holzapfelnet

After upgrading to Angular 7, i am getting error while runin "ng serve" Error is: Cannot find module 'rxjs-compat'. As per the angular updating document, we can remove the rxjs-compat. How to fix this issue without rxjs-compat.

gprathuish avatar Jan 23 '19 07:01 gprathuish

Just upgraded to Angular 7 from Angular 5. Project was initially auto-generated in Visual Studio 2017. Received the following message when I attempted to run ng build from the Angular CLI:

ERROR in node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.
src/app/shared/global-headers.interceptor.ts(9,10): error TS2305: Module '"C:/MyAwesomeApp/app/node_modules/rxjs/Observable"' has no exported member 'Observable'.

Asvarduil avatar Feb 06 '19 20:02 Asvarduil

Resolve error running by npm install --save rxjs-compat

Rajnikantlodhi avatar Mar 07 '19 06:03 Rajnikantlodhi

I do it, but no work

Timn97 avatar Mar 20 '19 10:03 Timn97

No luck for me too....I am unable to normally build the code

phatakrajan avatar Apr 24 '19 14:04 phatakrajan

Resolve error running by npm install --save rxjs-compat

this did the trick for me

jorgepazp avatar Apr 26 '19 21:04 jorgepazp

npm install --save rxjs-compat i has try don't

tienanhcntt2 avatar May 23 '19 06:05 tienanhcntt2

rxjs-compat works, but jwt's imports need to be updated for rxjs 6 so we don't need to install additional packages.

mjb1632 avatar May 30 '19 15:05 mjb1632

@Rajnikantlodhi the command npm install --save rxjs-compat Solve the problem. Thanks

JuanEstebanKatz avatar May 31 '19 17:05 JuanEstebanKatz

@Rajnikantlodhi the command npm install --save rxjs-compat Solve the problem. Thank you very much

girishgodage avatar Jun 24 '19 14:06 girishgodage

gracias me sirvio el npm install -s rxjs-compat

yonykikok avatar Aug 26 '19 13:08 yonykikok

Resolve error running by npm install --save rxjs-compat

This worked for me.Thanks!

shuklaashish avatar Sep 05 '19 05:09 shuklaashish

import { Observable } from "rxjs";

Simplay this worked for me :-)

ankitvadariya avatar Sep 06 '19 14:09 ankitvadariya

import { Observable } from "rxjs";

Simplay this worked for me :-)

This worked for me - thank you !!

jeremysavoy avatar Sep 24 '19 15:09 jeremysavoy

import npm install --save rxjs-compat and next run the project : ng serve

ouechtati avatar Mar 13 '20 15:03 ouechtati

Angular CLI: 9.1.4 Resolve error running by npm install --save rxjs-compat

worked for me..

VijayChitraa avatar Jun 10 '20 01:06 VijayChitraa

import { Observable } from "rxjs";

Simplay this worked for me :-)

This worked for me. Thank you.

Mahantesh-DotNet avatar Jun 15 '20 19:06 Mahantesh-DotNet

next: npm install in console.

Salpeji avatar Aug 22 '21 21:08 Salpeji