Skip to content
Home » Module not found: Can’t resolve ‘axios’ in ‘C:\Users\

Module not found: Can’t resolve ‘axios’ in ‘C:\Users\

Let’s start the discussion about Module not found: Can’t resolve ‘axios’ in ‘C:\Users\ in following methods.

Module not found: Can’t resolve ‘axios’ in ‘C:\Users\

Is used to import a file, and the ‘../’ represents the path to the higher folder. As a result, “../axios” indicates that it is looking for a file named “axios.js” in the current file’s outer folder.

An axios file is created in order to construct an instance of axios with some default options such as baseURL, intercepters, and so on. Given that you have already installed axios, you must import the module axios here.

npm install axios --save

then import as :

import axios from 'axios';

I hope the strategies listed above work for you. Happy coding and come back again.

Similar Post : How to Install dependencies on react project mui