Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axios ^1.5 #4

Open
AmiltonCabral opened this issue Sep 22, 2023 · 0 comments
Open

Axios ^1.5 #4

AmiltonCabral opened this issue Sep 22, 2023 · 0 comments

Comments

@AmiltonCabral
Copy link
Member

Axios está na versão 1.3 pois ao atualizar para a versão 1.5 ocorre o seguinte erro no build:

[at-loader] ../../.../react/provider.ts:3:26
TS2345: Argument of type '{ baseURL: string; }' is not assignable to parameter of type 'CreateAxiosDefaults'.
Property 'string' is missing in type '{ baseURL: string; }' but required in type 'CreateAxiosDefaults'. [email protected]

O erro se da na hora de passar o baseURL, esse erro não ocorre na versão 1.3. Então uma forma de concertar o código para que funcione nas versões mais recentes do axios é necessário, para manter as dependências atualizadas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant