Closed maciekgrzybek closed 6 years ago
How can this bug be reproduced?
import axios from 'axios';
axios .get(urlRequest) .then((response) => { let temp = parseInt(response.data.main.temp); let weather = response.data.weather[0].id; showWeather(temp, weather, el); }) .catch((error) => { console.log(error); });
What did you expect to happen? Should return correct data from API
What happened instead? Promise is not defined in IE11
Please List the Following:
You need to add the polyfill according to the Axios repo.
axios depends on a native ES6 Promise implementation to be supported. If your environment doesn't support ES6 Promises, you can polyfill.
Source: https://github.com/axios/axios#promises
How can this bug be reproduced?
import axios from 'axios';
axios .get(urlRequest) .then((response) => { let temp = parseInt(response.data.main.temp); let weather = response.data.weather[0].id; showWeather(temp, weather, el); }) .catch((error) => { console.log(error); });
What did you expect to happen? Should return correct data from API
What happened instead? Promise is not defined in IE11
Please List the Following: