Can't resolve 'axios' code example
Example 1: Module not found: Can't resolve 'axios' in 'C:\Users\
// install axios in command line
npm install axios --save
Example 2: axios typescript
axios.request<ServerData>({
url: 'https://example.com/path/to/data',
transformResponse: (r: ServerResponse) => r.data
}).then((response) => {
// `response` is of type `AxiosResponse<ServerData>`
const { data } = response
// `data` is of type ServerData, correctly inferred
})