quickest-silver
quickest-silver10mo ago

Axios

Is it possible to use a never version than axios 0.26 to implement a data provider?
5 Replies
kapa.ai
kapa.ai10mo ago
Hi @.krm42. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- The information extracts do not specify a maximum version for axios to be used with refine. The tutorial from the refine documentation (https://refine.dev/docs/tutorial/understanding-dataprovider/create-dataprovider/) uses axios@0.26 as an example. However, it does not explicitly state that higher versions are not supported. It's generally recommended to use the latest stable version of a package to benefit from the latest features and security updates. However, you should also check the package's release notes and refine's compatibility to ensure there are no breaking changes that could affect your application. Here's how you install axios in your project as per the tutorial:
npm install axios@0.26
npm install axios@0.26
If you want to install the latest version, you can omit the version number:
npm install axios
npm install axios
Remember to test your application thoroughly after upgrading to a newer version. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai10mo ago
<@968093986755600414> kapa.ai is still learning and improving, please let us know how it did by reacting below
quickest-silver
quickest-silver10mo ago
it does not work
Omer
Omer10mo ago
Hello, @.krm42 . You are free to use any version of the axios you want. Do you have a specific error you're experiencing?
quickest-silver
quickest-silver10mo ago
Typescript error, something about nonmatching parameters. ended up implementing my own dataprovider