Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

need dependency on axios #8

Closed
xenoterracide opened this issue Oct 24, 2020 · 8 comments
Closed

need dependency on axios #8

xenoterracide opened this issue Oct 24, 2020 · 8 comments

Comments

@xenoterracide
Copy link

with yarn 2 PnP, modules cant require/import other modules unless they are a dependency, so it won't pick up axios just because I imported it.


1 import { AxiosRequestConfig, AxiosResponse } from 'axios';

maybe worth saying on version 0.20 I have this issue axios/axios#3219

@azakordonets
Copy link
Contributor

@xenoterracide sorry not sure i'm following you - do you suggest to add axios to dependencies of this library, or to upgrade axios library to 0.21 version ?

@xenoterracide
Copy link
Author

yes, both. or maybe downgrade it to 0.19.2, I notice a lot of other libraries using 0.19...

@azakordonets
Copy link
Contributor

@xenoterracide fixed in v.0.1..6 . Let me know if it's still a problem.

@xenoterracide
Copy link
Author

hmm... I'm not able to reproduce it, but then I'm not working on that branch... and I lamely didn't post enough about what I was doing. however it looks like you have that dependency in devDependencies when it should be in dependencies also, I'm ok with a dependency on ^0.19.2 I just wanted to be able to do earlier than 0.20

@azakordonets
Copy link
Contributor

@xenoterracide added deps in 0.1.7. Let me know if it's ok to close this ticket

@xenoterracide
Copy link
Author

better, but you still might want to make the dep *^*0.19.2 so if someone wants to use 0.21.x they can without ending up with a second version. I'll leave that up to you, but otherwise looks fine.

@azakordonets
Copy link
Contributor

You're right, i missed it. Corrected in v0.1.8. Thanks!

@xenoterracide
Copy link
Author

looks good, thanks for the work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants