nestjs / axios

Axios module for Nest framework (node.js) 🗂

Home Page:https://docs.nestjs.com/techniques/http-module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Axios needs to be updated to 1.2.x

ctsstc opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Right now axios.isAxiosError will return the following error:

TypeError: Cannot read properties of undefined (reading 'isAxiosError')

There is a ticket around this in the axios repository here:

The problem is fixed by updating axios to 1.2.x

Currently if I update and include axios by hand then I get version missmatching on my typing as explained here:

Argument of type 'import("./node_modules/axios/index").AxiosRequestConfig<any>' is not assignable to parameter of type 'import("./node_modules/@nestjs/axios/node_modules/axios/index").AxiosRequestConfig<any>'.

Minimum reproduction code

axios/axios#5011

Steps to reproduce

No response

Expected behavior

I should be able to call axios.isAxiosError without it saying that axios is undefined.

This is a known bug for axios v1.1.3, and thus axios should be updated to 1.2.x

Package version

1.0.0

NestJS version

9.2.1

Node.js version

16.15.1

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response