The document located here: https://github.com/googlemaps/js-api-loader/blob/main/MIGRATION.md is incorrect.
setOptions({
libraries: ['maps', 'marker', 'places']
})
await importLibrary("maps");
if I then instantiate:
const placeAutoComplete = new google.maps.places.PlaceAutocompleteElement(
autocompleteOptions,
);
It fails with Failed to construct 'HTMLElement': Illegal constructor.
I need to specifically importLibrary("places") for it to work.