fawmi / vue-google-maps

Reactive Vue 3 components for Google maps
https://vue-map.netlify.app
MIT License
197 stars 103 forks source link

Unable to use map after follow the step #189

Open whitersun opened 1 year ago

whitersun commented 1 year ago

After Following the step I got the error when setup the init in main.ts and I don't know why it happen, I don't understand this error.

Describe the bug A clear and concise description of what the bug is. image

Expected behavior Should be normal not do anything when I was not use GMap or after using Gmap Components that will normal show the map.

Screenshots image image

Desktop (please complete the following information):

my GitHub project: https://github.com/whitersun/trashTime

starkfire commented 1 year ago

The issue is caused by fast-deep-equal. You may want to check https://github.com/fawmi/vue-google-maps/issues/164#issuecomment-1324013605 and https://github.com/fawmi/vue-google-maps/issues/188.

Just include the following in your vite.config.js file:

optimizeDeps: {
    include: [
        "@fawmi/vue-google-maps",
        "fast-deep-equal"
    ]
}
jtsaich commented 1 year ago

works for me