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

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

Open
NathanAP opened this issue Oct 16, 2022 · 12 comments
Assignees
Labels
bug Something isn't working dependencies This is about dependencies waiting We need more info about it or we are waiting for something else

Comments

@NathanAP
Copy link
Owner

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

@lotestudio
Copy link

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.

@websitevirtuoso
Copy link
Collaborator

Yes this works. but this is hack not solution

@websitevirtuoso
Copy link
Collaborator

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

@NathanAP
Copy link
Owner Author

NathanAP commented Oct 17, 2022

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.

@NathanAP NathanAP added bug Something isn't working dependencies This is about dependencies waiting We need more info about it or we are waiting for something else labels Oct 17, 2022
@metinjakupi
Copy link

metinjakupi commented Nov 17, 2022

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" ] 
    })
   }

@Dante3003
Copy link

How i can solve this problem on nuxt 3?

@NathanAP
Copy link
Owner Author

Hello @Dante3003 , you can try looking in #33

@felixranesberger
Copy link

It would be awesome, if everybody could upvote this comment, so that this issue gets resolved quicker 👍

googlemaps/js-markerclusterer#610

@felixranesberger
Copy link

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

@NathanAP
Copy link
Owner Author

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

@ntnyq
Copy link

ntnyq commented Dec 25, 2023

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.

@RamonDonadeu
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies This is about dependencies waiting We need more info about it or we are waiting for something else
Projects
None yet
Development

No branches or pull requests

8 participants