AxiosResponse not found in 'axios' #5859
Replies: 8 comments
-
Did you get solution? I am having issue. |
Beta Was this translation helpful? Give feedback.
-
For some reason i had to enable this setting in eslint
not sure why it's changed in axios |
Beta Was this translation helpful? Give feedback.
-
I dont see that property in my code. is it possible for you to share screenshot of code(settings)? |
Beta Was this translation helpful? Give feedback.
-
This is in
|
Beta Was this translation helpful? Give feedback.
-
Thanks .. this worked. I was using typescript so it is bit different. |
Beta Was this translation helpful? Give feedback.
-
Stuck with the same issue on 1.4.0. Is there any way to solve this without using 'import/named' eslint rule? |
Beta Was this translation helpful? Give feedback.
-
Bump, is there a way to import AxiosResponse without needing to change eslint rules? I am happy to contribute if a change needs to be made. |
Beta Was this translation helpful? Give feedback.
-
I faced the same issue and solved without changing any eslint configuration. I added "type" after "import" and the problem was gone. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I've upgraded from0.27.2 to 1.2 and now 1.4. It seems both 1.x versions don't import
AxiosResponse
import axios, { AxiosResponse } from 'axios';
i get an error
To Reproduce
No response
Code snippet
Expected behavior
No response
Axios Version
1.4.0
Adapter Version
xhr
Browser
No response
Browser Version
No response
Node.js Version
16.17.0
OS
No response
Additional Library Versions
Additional context/Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions