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

[TypeScript]Unable to import names #251

Closed
yutak23 opened this issue Nov 15, 2023 · 2 comments
Closed

[TypeScript]Unable to import names #251

yutak23 opened this issue Nov 15, 2023 · 2 comments

Comments

@yutak23
Copy link
Contributor

yutak23 commented Nov 15, 2023

We cannot use name import.

srv/app.ts:2:22 - error TS2614: Module '"axios-retry"' has no exported member 'IAxiosRetryConfig'. Did you mean to use 'import IAxiosRetryConfig from "axios-retry"' instead?

2 import axiosRetry, { IAxiosRetryConfig } from 'axios-retry';
                       ~~~~~~~~~~~~~~~~~

I noticed this when @rchl pointed it out to me. My apologies.
#250 (comment)

@borisilic-ap
Copy link

borisilic-ap commented Nov 15, 2023

Similar issue here where exponentialDelay can no longer be de-structured like so

// TS2614: Module  'axios-retry'  has no exported member  exponentialDelay. 
import axiosRetry, { exponentialDelay } from 'axios-retry'

This happens with the change from 3.8.2 to 3.9.0.

This is a breaking change, the version should be bumped to 4.0.0.

@mindhells
Copy link
Member

closed as #250 has been reverted on 3.9.0
The plan is now to migrate to TS implementation
Thanks for your feedback!

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

Successfully merging a pull request may close this issue.

3 participants