Answers for "Module '"@angular/common/http"' has no exported member 'RequestOptions'"

0

Module '"@angular/common/http"' has no exported member 'RequestOptions'

//RequestOptions is deprecated if you use @angular/common/http
//try this solution instead:
import { HttpHeaders } from '@angular/common/http';
...
const httpOptions = {
        headers: new HttpHeaders({
          'Content-Type':  'application/json',
          'Authorization': environment.key
          })
        };
...
Posted by: Guest on September-09-2021

Code answers related to "Module '"@angular/common/http"' has no exported member 'RequestOptions'"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language