const axiosApiInstance = axios.create({ baseURL: "YOUR_BASE_URL_HERE" });
const apisauceInstance = create({
axiosInstance: axiosApiInstance,
baseURL: "YOUR_BASE_URL_HERE",
});
try {
const response: ApiResponse<T> = await apisauceInstance.post(
endpoints[endpointKey],
requestData
);
return response;
} catch (error: any) {
throw error;
}
When I tried the above code it showed the below error
Versions using are "axios": "^1.5.0" and "apisauce": "^3.0.1"