-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Axios auth refresh doesn't work with axios v1.1.3 #219
Comments
I stopped working even on version 1.0.0 |
Perhaps you re missing 'stream' module inside your build
Are you using Vite or Webpack? |
I have this same problem using Vite |
i have the same problem when using Vite. I've spent several hours looking for a solution, this problem is related to node modules. In my case it was 'url' and 'stream' modules. I'm found this plugin https://github.com/voracious/vite-plugin-node-polyfills and it fixed problem. |
I think i know the cause of your issue specifically. There is a problem here: axios-auth-refresh/src/utils.ts Line 143 in 6ea5f96
In the older Axios versions, The class of error is now AxiosError and the class of It is debatable whether this could be considered a problem with axios or axios-auth-refresh. |
Did anyone figure out a way to work around the problem I mentioned above? My security team needs me to upgrade axios and I can't delay it anymore. Just realized it's exactly one year since my comment 😄 . Didn't expect this thread to be this quiet 🤪 |
Whenever i run a build it gives this
Writable is not defined
error.I have downgraded axios to version 1.1.2 and it works fine.
The text was updated successfully, but these errors were encountered: