From a87e6017f73d4df9076f2a3bdbc6835d0cbe9d97 Mon Sep 17 00:00:00 2001 From: "Nathan A. Paludo" Date: Fri, 4 Nov 2022 17:25:45 -0300 Subject: [PATCH] Updated README.md to help #14 situation --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 12f6afc..c64a620 100644 --- a/README.md +++ b/README.md @@ -267,17 +267,20 @@ Many other components are also supported. Checkout [docs](https://vue-map.netlif Warning: this is part of the old documentation and I never used Nuxt, please let me know if it will work properly this way. -First add `vue-google-maps-community-fork` to `build.transpile` property in your `nuxt.config.ts`. +In order to your Nuxt 3 project work properly with this library, you need to add `vue-google-maps-community-fork` to `build.transpile` property in your `nuxt.config.ts`. +Also, as pointed [here](https://github.com/NathanAP/vue-google-maps-community-fork/issues/14), you will need to add `@googlemaps/markercluster` into it as well for your builded project work properly. + +Here is an example: ```ts export default defineNuxtConfig({ build: { - transpile: ['vue-google-maps-community-fork'], + transpile: ['vue-google-maps-community-fork', '@googlemaps/markercluster'], }, }) ``` -Then create a plugin `~/plugin/vueGoogleMaps.ts`. +After that, you need to configure your plugin `~/plugin/vueGoogleMaps.ts`. ```ts import { defineNuxtPlugin } from '#app'