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

Support axios 1.x #382

Closed
EranNL opened this issue Feb 20, 2024 · 3 comments
Closed

Support axios 1.x #382

EranNL opened this issue Feb 20, 2024 · 3 comments

Comments

@EranNL
Copy link

EranNL commented Feb 20, 2024

Are there any plans to support axios 1.x? I get a huge list of incompatible types when using axios 1.x (or I am doing something wrong).

afbeelding

@EranNL EranNL closed this as completed Mar 6, 2024
@Kenneth-Sills
Copy link

@EranNL Were you able to find out more about this issue and how to fix/work around it? As far as I can tell, this seems to be caused by Tyescript choosing different .d.[c]ts files for the immediate file importing and the transitively imported one through the library and getting awfully confused.

I've been plucking away at this for a bit, so any help would be appreciated!

@evelynhathaway
Copy link

@Kenneth-Sills I am running into an identical issue to the one in this comment in another project softonic/axios-retry#159 (comment), which sounds similar to yours too.

I use axios-mock-adapter in Jest ESM to test files that import axios in ESM, but I think TypeScript is assuming axios-mock-adapter is using CJS to import axios.

I confirmed I have only have one deduped [email protected] and one [email protected] across the project.

@evelynhathaway
Copy link

@Kenneth-Sills I created #400 for my issue in case it sounds related to yours

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

3 participants