You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not quite new to Vue en certainly Axios. I'm stepping into a project.
I could solver certain things but now I'm running into trouble and I don't know how to get further, also due a lack of knowledge of Axios\Vue.
I've question about upgrading of Axios. I have Axios upgraded from 0.22. to 1.7.2 and I get the following error:
ERROR in src/api/xxxxxxxxxxx.ts:268:8
TS2345: Argument of type '{ url: string; method: string; }' is not assignable to parameter of type 'InternalAxiosRequestConfig'.
Property 'headers' is missing in type '{ url: string; method: string; }' but required in type 'InternalAxiosRequestConfig'.
I had also AxiosInstance in the import line, but it is removed by webstorm because it is not used.
The axiosInstance is of the type AxiosInstane type, but that should be InternalAxiosInstance I think? And then the signature is changed or...?
Can someone give a hint or do suggestion how to solve this? Or point me into a direction that I can get further.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm not quite new to Vue en certainly Axios. I'm stepping into a project.
I could solver certain things but now I'm running into trouble and I don't know how to get further, also due a lack of knowledge of Axios\Vue.
I've question about upgrading of Axios. I have Axios upgraded from 0.22. to 1.7.2 and I get the following error:
Here is the code which is calling the http (get):
And here is the http method which is called:
I had also AxiosInstance in the import line, but it is removed by webstorm because it is not used.
The axiosInstance is of the type AxiosInstane type, but that should be InternalAxiosInstance I think? And then the signature is changed or...?
Can someone give a hint or do suggestion how to solve this? Or point me into a direction that I can get further.
Beta Was this translation helpful? Give feedback.
All reactions