Skip to content
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

Default import not working #284

Open
Sarang-khajuria opened this issue May 27, 2024 · 1 comment
Open

Default import not working #284

Sarang-khajuria opened this issue May 27, 2024 · 1 comment

Comments

@Sarang-khajuria
Copy link

I am importing createAuthRefreshInterceptor into one of my files using:
import createAuthRefreshInterceptor from "axios-auth-refresh";
I am using this in a npm package and calling that npm package into my own app.
While running npm run dev(vite as my build tool) I am getting this error
The requested module '/node_modules/axios-auth-refresh/dist/index.min.js?v=576ed0f7' does not provide an export named 'default'
The versions I am using are:
"axios": "^1.6.0",

"axios-auth-refresh": "^3.3.6",
node version : v20.13.1

Please help

@corwinstephen
Copy link

Same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants