Skip to content

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 #42

Description

@goodsosbva

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions