const autocomplete = new google.maps.places.Autocomplete(input);
// Set initial restrict to the greater list of countries.
autocomplete.setComponentRestrictions({
country: ["us", "pr", "vi", "gu", "mp"],
});
Uncaught (in promise) TypeError: Cannot read property 'Autocomplete' of undefined
at GoogleMapsScriptLoader
from google APIS doc
when I try this it gives me undefined for the places
the Error