fawmi / vue-google-maps

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

I added (import VueGoogleMaps from "@fawmi/vue-google-maps") at the main.js file and the application breaks #198

Closed psalmistcom closed 1 year ago

psalmistcom commented 1 year ago

The requested module '/node_modules/fast-deep-equal/index.js?v=848aeb3e' does not provide an export named 'default'

will-lucena commented 1 year ago

+1

node version: 18.17.1

will-lucena commented 1 year ago

@psalmistcom I've searched in the other issues and found @tahaipek's solution in #148 and it worked for me:

add it in your vite.config.js

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

@will-lucena thanks for your response. I've actually done this and still not work.

I have to downgrade my Vue app and the package. Then delete the node_modules and reinstall it before it works.