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' #152

Open
dmoyadev opened this issue Sep 16, 2022 · 26 comments

Comments

@dmoyadev
Copy link

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

@NathanAP
Copy link

Same here, I'm getting this error after making a npm update to 0.9.79

@joshhammer
Copy link

Same here. Can't get it to work anymore. Not even with downgrading. Did that work for anybody else? How did you downgrade exactly?

@NathanAP
Copy link

Same here. Can't get it to work anymore. Not even with downgrading. Did that work for anybody else? How did you downgrade exactly?

Downgrade to v0.9.67, you just need to set the exact version in your package.json, delete the node_modules directory and run npm install again.

@mrc-bsllt
Copy link

mrc-bsllt commented Sep 26, 2022

It does not even work for me with version v0.9.67 (Nuxt 3 3.0.0-rc.11). I also tried adding @googlemaps/markerclusterer in the nuxt.config.ts transpile.

nuxt.config.ts

build: {
  extractCSS: true,
  transpile: ['swiper', 'shipit-cli', '@fawmi/vue-google-maps', '@googlemaps/markerclusterer']
}

Does anyone know how to do this?

EDIT:
this problem only exists locally, in production everything works fine!

@wasitum
Copy link

wasitum commented Sep 29, 2022

I have the same issue with Nuxt 3.0.0-rc.10 & package v0.9.79. Tried to downgrade to 0.9.67 but same issue. As @mrc-bsllt mentioned, this works in production but not locally. Any lead on that ?

@zakariamehbi
Copy link

I have the same issue with Nuxt 3.0.0-rc.10 & package v0.9.79. Tried to downgrade to 0.9.67 but same issue. As @mrc-bsllt mentioned, this works in production but not locally. Any lead on that ?

Try fixing the version, this way : "@fawmi/vue-google-maps": "0.9.67"

@wasitum
Copy link

wasitum commented Oct 4, 2022

I have the same issue with Nuxt 3.0.0-rc.10 & package v0.9.79. Tried to downgrade to 0.9.67 but same issue. As @mrc-bsllt mentioned, this works in production but not locally. Any lead on that ?

Try fixing the version, this way : "@fawmi/vue-google-maps": "0.9.67"

This process worked :

  • removed node_modules and the yarn lock file
  • changed the version to what you said in the package.json file
  • installed the package and ran the site again

Thanks !

@reslear
Copy link

reslear commented Oct 4, 2022

hi @fawmi what is the package maintenance status?

@NathanAP
Copy link

NathanAP commented Oct 4, 2022

Really hope that Fawmi keeps this maintained, this package is the best to manipulate maps I found so far.

@mrc-bsllt
Copy link

I have the same issue with Nuxt 3.0.0-rc.10 & package v0.9.79. Tried to downgrade to 0.9.67 but same issue. As @mrc-bsllt mentioned, this works in production but not locally. Any lead on that ?

Try fixing the version, this way : "@fawmi/vue-google-maps": "0.9.67"

This process worked :

  • removed node_modules and the yarn lock file
  • changed the version to what you said in the package.json file
  • installed the package and ran the site again

Thanks !

My problem was that I had not removed '^' from the package version.
I changed this "@fawmi/vue-google-maps": "^0.9.67" for this "@fawmi/vue-google-maps": "0.9.67", and it works!

@tahaipek
Copy link

tahaipek commented Oct 4, 2022

Can you try this solution #148 (comment)

@reslear
Copy link

reslear commented Oct 4, 2022

@tahaipek with vite 3 don't work

@tahaipek
Copy link

tahaipek commented Oct 4, 2022

I'm using Vite 3.1.3. This solution worked for me.

@Giuseppetm
Copy link

Can you try this solution #148 (comment)

I can confirm this fixes the problem, thank you.

@reslear
Copy link

reslear commented Oct 5, 2022

Is it possible to sponsor the development somehow?

@NathanAP
Copy link

NathanAP commented Oct 6, 2022

I'm using Vite 3.1.3. This solution worked for me.

Its working in v3.1.3 for me as well, thank you so much!

Is it confirmed that it is this the expected behavior? I believe we need a confirmation by @fawmi that this repo is still being maintaned. This was the best Google Maps repo I found and it would be awesome if you guys keep it up with it.

@tahaipek
Copy link

tahaipek commented Oct 7, 2022

I agree with you too, @NathanAP . I hope @fawmi continues to developed this package.

@gbrian
Copy link

gbrian commented Jan 18, 2023

Can you try this solution #148 (comment)

Worked for me, thanks.

@rafidgotit
Copy link

Thank you so much for the solution. Worked for me.

@josuelrocha
Copy link

josuelrocha commented May 4, 2023

Can you try this solution #148 (comment)

Worked for me, thanks.

perfect, it worked for me too.

@fenghsu
Copy link

fenghsu commented Jul 12, 2023

Thank you. Worked for me :)

Follow below process

  1. npm uninstall @fawmi/vue-google-maps
  2. npm install -S @fawmi/vue-google-maps@0.9.67

@NathanAP
Copy link

Guys, please read #159

@bchewy
Copy link

bchewy commented Oct 3, 2023

#159

This worked for me as well.

Thanks!

@mydaycare-carefree
Copy link

Does not work with Vite 4.2.0

@Attar74
Copy link

Attar74 commented Apr 27, 2024

Screenshot from 2024-04-27 03-24-22

I have the same issue with Nuxt 3.0.0-rc.10 & package v0.9.79. Tried to downgrade to 0.9.67 but same issue. As @mrc-bsllt mentioned, this works in production but not locally. Any lead on that ?

Try fixing the version, this way : "@fawmi/vue-google-maps": "0.9.67"

This process worked :

  • removed node_modules and the yarn lock file
  • changed the version to what you said in the package.json file
  • installed the package and ran the site again

Thanks !

This worked for me but the map details are hidden give the attached SS a look
"@fawmi/vue-google-maps": "0.9.67",
"nuxt": "^3.11.2",

@RilindArifi
Copy link

vite.config.js

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

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