I'm currently developing a Web Application using ADFS authentication.
I have the following runtime error:
"Cannot find module @auth0/angular-jwt".
I'm using Angular 5.2.10. I've tried to reinstalled my dependencies, however I still have errors:
I've errors in index.d.ts
:
Cannot find name 'Provider'and 'ModuleWithProviders'
And in jwt.interceptor.d.ts
:
Cannot find modules "@angular/common/http" and "rxjs/internal/Observable"
And in jwtoptions.token.d.ts
:
Cannot find module "@angular/core"
I haven't modified any of those files.
Is this an angular version problem? Am I using wrong versions of those libraries?
Thanks for your help!
node_modules
folder npm i
Try running it again
Answering for your first query i.e Cannot find module @auth0/angular-jwt"
Make sure inside node_modules folder you have specified path :- @auth0/angular-jwt/src/
import { JwtHelperService } from '@auth0/angular-jwt/src/jwthelper.service';
npm install @auth0/angular-jwt
# installation with yarn
yarn add @auth0/angular-jwt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With