I am working on a project in nuxt3 and I wanna add google places auto-complete on search input. I've been search for last 4 hours but can't got a way to set it up.
CodePudding user response:
After long research I found the below solution working for me in the nuxt3 stable version.
Install the following version (0.9.72) of @fawmi/vue-google-maps
your package.json file:
"dependencies": {
"@fawmi/vue-google-maps": "0.9.72",
}
in nuxt.config.ts add following lines
build: {
transpile: ["@fawmi/vue-google-maps"],
},
Then create folder named plugins and make a file inside it named vueGoogleMaps.ts