-
Notifications
You must be signed in to change notification settings - Fork 169
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
ESM default import This expression is not callable
#228
Comments
Perhaps pertinent discussion: microsoft/TypeScript#52086 |
I am seeing the same error on my project. I was able to work around it in the same way by using your type-casting solution. |
Using ts-ignore helped in my case import axiosRetry from "axios-retry";
// @ts-ignore
axiosRetry(axios, {retries: 3, retryDelay: axiosRetry.exponentialDelay}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran into this issue when trying to import this as default import. I'm not too familiar with manually created types and namespaces, so I'm not entirely sure what is going on. Please see my basic reproduction repo: https://github.com/jdbruijn/axios-retry-test. I did some tests and can get the import to work by casting the type, but that should not be needed of course. This is with
esModuleInterop
and v3.5.0.System info
The text was updated successfully, but these errors were encountered: