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 am not sure if this is related to this issue - #316
I have tried v3.0.1 and I still get this error when trying to create the apisauce instance.
TypeError: Bo.create is not a function
I am sure if this is a issue related to vite/esbuild though as if I run this through vite dev everything works as expected. Doing a production build using vite then creates the issue.
I have had to revert back to v2.1.6 and everything is working again.
Experiencing the same issue. Probably related to how axios is being imported and used in apisauce as ESbuild and Vite are using ESM and possibly not importing the ESM version of axios.
Update: My mistake was that I was importing api from: Import httpClient from '.'
But I had to import it from: Import httpClient from './index.ts'
I haven't still found out the reason behind but this might help you find the problem 🤔
Hello,
I am not sure if this is related to this issue - #316
I have tried v3.0.1 and I still get this error when trying to create the apisauce instance.
TypeError: Bo.create is not a function
I am sure if this is a issue related to vite/esbuild though as if I run this through vite dev everything works as expected. Doing a production build using vite then creates the issue.
I have had to revert back to v2.1.6 and everything is working again.
Just for clarity this is my file.
I hope this helps? If you want any help to try and replicate this then let me know :). I hope I have given a give enough explanation.
The text was updated successfully, but these errors were encountered: