Closed
Description
I was trying to use the example:
<script setup lang="ts">
const { $script } = useScriptGoogleMaps({
apiKey: 'key'
})
$script.then(({ maps }) => {
const map = new maps.Map(document.getElementById('map'), {
center: { lat: -34.397, lng: 150.644 },
zoom: 8
})
})
</script>
But I get a type error in my IDE: Property Map does not exist on type typeof maps | Promise<typeof maps>
As well as an error in Vue/Nuxt: Uncaught (in promise) TypeError: maps.Map is not a constructor