I am a beginner to MEAN Stack and I am creating a simple blog site with Angular 6 based on a year-old tutorial. This tutorial utilizes angular2-jwt for hiding and showing HTML Elements based on Authentication.
When I do install and compile the code, however, I get the following error on the command prompt:
**ERROR in node_modules/angular2-jwt/angular2-jwt.d.ts(3,10): error TS2305:
Module '"C:/Users/Admin/Desktop/MEAN_SITE/client/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'.**
What does this indicate?
Looks like the angular2-jwt
is not compatible with RxJS 6
.
You should use the same Angular/RxJS version as mentioned in the tutorial by editing the package.json
.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments