sensitive-blue
sensitive-blue15mo ago

Axios

Is it possible to use a never version than axios 0.26 to implement a data provider?
5 Replies
kapa.ai
kapa.ai15mo 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.ai15mo ago
<@968093986755600414> kapa.ai is still learning and improving, please let us know how it did by reacting below
sensitive-blue
sensitive-blueOP15mo ago
it does not work
Omer
Omer15mo ago
Hello, @.krm42 . You are free to use any version of the axios you want. Do you have a specific error you're experiencing?
sensitive-blue
sensitive-blueOP15mo ago
Typescript error, something about nonmatching parameters. ended up implementing my own dataprovider

Did you find this page helpful?