I upgraded Angular 5 to 8 - Conflicts

Asked

Viewed 58 times

0

I updated the angle today and some conflicts appeared... I solved most, but this I do not know how to solve... I would like help to solve.

Requestoptionsargs

-> @angular/http did not find the module: inserir a descrição da imagem aqui

I saw in the documentation and now it is used @angular/common/http, so I tried:

-> RequestOptionsArgs has no member exported: inserir a descrição da imagem aqui

USED IN:

protected createRequestOptions(): RequestOptionsArgs;
protected addSortRequestOptions(requestOptions: RequestOptionsArgs): RequestOptionsArgs;
protected addFilterRequestOptions(requestOptions: RequestOptionsArgs): RequestOptionsArgs;
protected addPagerRequestOptions(requestOptions: RequestOptionsArgs): RequestOptionsArgs;

1 answer

1


In the Angular V8 some packages had their functionalities changed for a better performance and so changed name, for example:

  • The Module Httpmodule was replaced by Httpclientmodule being imported into the modules thus => @angular/common/http

  • Replace all the services HTTP for the service Httpclient being imported thus => @angular/common/http

  • Some HTTP module interfaces have also been modified as the Requestoptionsargs which has been replaced by Httprequest

1: For a full updated list of what has been modified you can see this link.

2: Some changes were not made specifically in the Angular version 8, because I use the version 7 and this version already has the above changes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.