Skip to content

Commit

Permalink
Updated README.md to help #14 situation
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanAP authored Nov 4, 2022
1 parent 31f21d7 commit a87e601
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit a87e601

Please sign in to comment.