axios-auth-refresh icon indicating copy to clipboard operation
axios-auth-refresh copied to clipboard

Default import not working

Open Sarang-khajuria opened this issue 1 year ago • 3 comments

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

Sarang-khajuria avatar May 27 '24 07:05 Sarang-khajuria

Same

corwinstephen avatar Aug 16 '24 02:08 corwinstephen

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

you can change version node to 18.18.2 and use axios 1.4.0 to solve problem

huyvu23 avatar Feb 28 '25 09:02 huyvu23

remixjs requires node v20 or above. any solution?

accountunavaible avatar Jun 29 '25 22:06 accountunavaible