angular error Can not find module 'rxjs / internal / Observable'

0

I'm trying to make an application with ionic 3 that uses angular but I throw this error when using the library @ auth0 / angular-jwt, when trying to reinstall rxjs because I guess it will be version errors, I guess ... throws me the error

+-- UNMET PEER DEPENDENCY @angular/[email protected]
'-- [email protected]  invalid

I tried

npm install @angular/[email protected]

but without success I do not solve the problem the right mistake is when adding these lines

import { JwtHelperService } from '@auth0/angular-jwt';
const helper = new JwtHelperService();
    
asked by Francisco 17.05.2018 в 21:00
source

2 answers

-1

I had the same issue. Found that the 2.0.0 version of angular-jwt requires angular and rxjs in version 6 +.

Ionic 3 currently supports only angular and rxjs in version 5 +.

Using The 1.2.0 version of angular-jwt fixed the issue for me.

npm install @ auth0 / angular-jwt @ 1.2.0 --save-exact

    
answered by 18.05.2018 в 10:47
-1

I had the same problem.

It seems that version 2.0.0 of angular-jwt requires a version of angular 6 +. Ionic 3 currently supports only angular and rxjs in the 5 + version.

Using version 1.2.0 of angular-jwt worked for me.

npm install @auth0/[email protected] --save-exact .

It worked perfectly for me, changing version 2.0.0 from angular-jwt of the package.json file to 1.2.0, I deleted the node_modules folder with

rm -rf node_modules

And I reinstalled the dependencies with npm install and it works fine.

    
answered by 29.05.2018 в 07:56