We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello.
I have a problem with the module when I use it with nodejs.
Welcome to Node.js v18.12.1. Type ".help" for more information.
import('axios-auth-refresh').then(console.log)
[Module: null prototype] { 'axios-auth-refresh': undefined, default: { default: [Function (anonymous)] }
It causes trouble with SSR.
The text was updated successfully, but these errors were encountered:
Why? It is just exporting the default. You can try require. But my guess you don't have node setup right for imports.
> npx ts-node import axios from 'axios'; import createAuthRefreshInterceptor from 'axios-auth-refresh'; createAuthRefreshInterceptor(axios, () => Promise.resolve());
This works once I have the packages in node_modules.
Sorry, something went wrong.
Hello. I have a problem with the module when I use it with nodejs. Welcome to Node.js v18.12.1. Type ".help" for more information. import('axios-auth-refresh').then(console.log) [Module: null prototype] { 'axios-auth-refresh': undefined, default: { default: [Function (anonymous)] } It causes trouble with SSR.
Did you find any solution for the above? I'm getting this while creating a bundle using tsup.
Probably same issue: #284
No branches or pull requests
Hello.
I have a problem with the module when I use it with nodejs.
Welcome to Node.js v18.12.1.
Type ".help" for more information.
It causes trouble with SSR.
The text was updated successfully, but these errors were encountered: