ReduxCasts
ReduxCasts copied to clipboard
js:208 Loading the Google Maps JavaScript API without a callback is not supported: https://developers.google.com/maps/documentation/javascript/url-params#required_parameters
I downloaded it from the storage and ran it, but the error below comes out? Even though I replaced the API key with mine, I get the same error. How do we solve this?
`import axios from "axios";
const API_KEY = "MY API KEY";
const ROOT_URL = http://api.openweathermap.org/data/2.5/forecast?appid=${API_KEY}
;
export const FETCH_WEATHER = "FETCH_WEATHER";
export function fetchWeather(city) {
const url = ${ROOT_URL}&q=${city},us
;
const request = axios.get(url);
return { type: FETCH_WEATHER, payload: request }; } `
how do i solve this?