fawmi / vue-google-maps

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

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

Open dmoyadev opened 2 years ago

dmoyadev commented 2 years ago

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 commented 2 years ago

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

joshhammer commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 :

Thanks !

reslear commented 2 years ago

hi @fawmi what is the package maintenance status?

NathanAP commented 2 years ago

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

mrc-bsllt commented 2 years ago

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 commented 2 years ago

Can you try this solution https://github.com/fawmi/vue-google-maps/issues/148#issuecomment-1235143844

reslear commented 2 years ago

@tahaipek with vite 3 don't work

tahaipek commented 2 years ago

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

Giuseppetm commented 2 years ago

Can you try this solution #148 (comment)

I can confirm this fixes the problem, thank you.

reslear commented 2 years ago

Is it possible to sponsor the development somehow?

NathanAP commented 2 years ago

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 commented 2 years ago

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

gbrian commented 1 year ago

Can you try this solution #148 (comment)

Worked for me, thanks.

rafidgotit commented 1 year ago

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

josuelrocha commented 1 year ago

Can you try this solution #148 (comment)

Worked for me, thanks.

perfect, it worked for me too.

fenghsu commented 1 year ago

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 commented 1 year ago

Guys, please read https://github.com/fawmi/vue-google-maps/issues/159

bchewy commented 1 year ago

159

This worked for me as well.

Thanks!

mydaycare-carefree commented 11 months ago

Does not work with Vite 4.2.0

Attar74 commented 7 months ago

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 commented 2 weeks ago

vite.config.js

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