Closed blasdfaa closed 3 weeks ago
you need to change:
export const httpClient = ofetch.create({});
to
export const httpClient = () => ofetch.create({});
as per the error message "Your mutator file doesn't have the httpClient exported function"
Thanks @thomas-harmeyer
What are the steps to reproduce this issue?
npm run orval
What happens?
takes error in terminal -
Your mutator file doesn't have the httpClient exported function
What were you expecting to happen?
The custom http client must be successfully applied
Any logs, error output, etc?
What versions are you using?