axios-module icon indicating copy to clipboard operation
axios-module copied to clipboard

isAxiosError is undefined on NuxtAxiosInstance

Open BobbieGoede opened this issue 4 years ago • 3 comments

NuxtAxiosInstance does not have isAxiosError while the interface it extends suggest that it does.

BobbieGoede avatar Nov 16 '21 12:11 BobbieGoede

It should do - perhaps you are not importing the type properly? There was an issue I had which is resolved here, fancy taking a look as if it resolves your issue you can close this one? https://github.com/nuxt-community/axios-module/issues/555

silverbackdan avatar Mar 10 '22 16:03 silverbackdan

No, seems like it isAxiosError functions still doesn't exist on NuxtAxiosInstance. At least not on latest release 5.13.6.

It's not a huge issue. I can directly import axios from "axios" and call axios.isAxiosError(..). Though it would be sweet to add it in NuxtAxiosInstance.

ZhuBoao avatar Mar 16 '22 07:03 ZhuBoao

Ah yes, misunderstood the issue and you're right, hopefully maintainers will see your fix :)

silverbackdan avatar Mar 16 '22 11:03 silverbackdan