NathanAP/vue-google-maps-community-fork

Requested module 'fast-deep-equal' does not provide an export named 'default'

NathanAP opened this issue ยท 14 comments

This issue is the same as Fawmi's repo.

Original content:

Describe the bug
With version 0.9.79, there is something broken related to default exports, as I'm receiving this message in the console that breaks everything in my app:
The requested module '/node_modules/fast-deep-equal/index.js?v=dfdb27d1' does not provide an export named 'default'

It is fixed once I downgraded to 0.9.67

Do you try this 148

Or for this fork add this to vite.config.js:

optimizeDeps: {
        include: [
            "vue-google-maps-community-fork",
            "fast-deep-equal",
        ],
    },

Working for me.

Yes this works. but this is hack not solution

The original problem in the package marker cluster.
googlemaps/js-markerclusterer#383

Maybe somebody can fix it there. Until then we can just extend the documentation that we need to write in vite.config

I will make a change in the docs until they fix it. Meanwhile we can hope that they'll fix it soon.

edit: update is up. We can keep an eye on that issue to see whats going on.

If anyone uses with Quasar (vite) and has this problem i fixed like this

extendViteConf (viteConf) {
   Object.assign(viteConf.optimizeDeps, {
     include: [ "vue-google-maps-community-fork",  "fast-deep-equal" ] 
    })
   }

How i can solve this problem on nuxt 3?

Hello @Dante3003 , you can try looking in #33

It would be awesome, if everybody could upvote this comment, so that this issue gets resolved quicker ๐Ÿ‘

googlemaps/js-markerclusterer#610

The issue got moved to priority "P1".
If the issue is resolved, we can update js-markerclusterer and resolve the issue this way.

Thats great to hear! Lets keep our eyes on it, I'm sure it will be resolved ASAP

ntnyq commented

For anyone who use pnpm as a package manager, you should install fast-deep-equal manually or set shamefully-hoist=true in .npmrc first, then config optimizeDeps.include.

If anyone uses with Quasar (vite) and has this problem i fixed like this

extendViteConf (viteConf) {
   Object.assign(viteConf.optimizeDeps, {
     include: [ "vue-google-maps-community-fork",  "fast-deep-equal" ] 
    })
   }

With this solution, it didn't work for me. I had to delete "vue-google-maps-community-fork" And works fine.

Long time no see haha
The pull request just got merged and released, so wen can update google maps to resolve the issue

I can't get this fixed on Quasar with

"@quasar/app-vite": "^2.0.0",

I try adding:

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

neither this:

      optimizeDeps: {
        include: [
            "vue-google-maps-community-fork",
            "fast-deep-equal",
        ],
      },

But still get:

Image