ReduxCasts icon indicating copy to clipboard operation
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

Open goodsosbva opened this issue 2 years ago • 0 comments

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 }; } `

Loading the Google Maps JavaScript API without a callback is not supported: https://developers.google.com/maps/documentation/javascript/url-params#required_parameters

how do i solve this?

goodsosbva avatar Feb 02 '23 14:02 goodsosbva