Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuxt 3 Issues #188

Open
geofany opened this issue Jun 12, 2023 · 3 comments
Open

Nuxt 3 Issues #188

geofany opened this issue Jun 12, 2023 · 3 comments

Comments

@geofany
Copy link

geofany commented Jun 12, 2023

When i using Lastest Version @fawmi/vue-google-maps^0.9.79
it's show error
Screenshot 2023-06-12 at 21 08 43

same like this Issues #164
the solution there is to downgrade Version to @fawmi/vue-google-maps^0.9.72

And it's work!

but shown another Warning Messages
Screenshot 2023-06-12 at 21 10 17

same like this Issues #144
the problem is @googlemaps/markerclustererplus is deprecated and need to change to @googlemaps/markerclusterer
which is available on @fawmi/vue-google-maps^0.9.79

then what i'm supposed to do ?

i can use version ^0.9.72 and running well
but the warning is so annoying

@SedlakMarcel
Copy link

Adding this to vite.config.ts worked for me.

optimizeDeps: {
    include: ["@fawmi/vue-google-maps", "fast-deep-equal"],
  },

Im using the latest version 0.9.79.

@mattbroekhuis
Copy link

mattbroekhuis commented Jun 14, 2023

vite can be configured right in the nuxt.config file

//nuxt.config file
 vite: {
    optimizeDeps: {
      include: ['@fawmi/vue-google-maps', 'fast-deep-equal'],
    },

@MaxBeyer
Copy link

MaxBeyer commented Jun 14, 2023

vite can be configured right in the nuxt.config file

//nuxt.config file
 vite: {
    optimizeDeps: {
      include: ['@fawmi/vue-google-maps', 'fast-deep-equal'],
    },

To add to this, when using Nuxt 3 with this dependency, you MUST add this in the nuxt.config.ts file. Nuxt will ignore it if you add it to the vite.config.ts file, and you'll continue to get the error locally.

This fixed my issue using version 0.9.79 and Nuxt 3.5.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants