capacitor-community / google-maps

Capacitor Plugin using native Google Maps SDK for Android and iOS.
https://capacitor-community.github.io/google-maps/
MIT License
153 stars 64 forks source link

Not compatible with @capacitor/core 6.0.0 #233

Closed ravimittal16 closed 5 months ago

ravimittal16 commented 6 months ago

NPM Error Your version of @capacitor/google-maps is not compatible with @capacitor/core 6.0.0..

To Reproduce Steps to reproduce the behavior:

  1. Go to IONIC Upgrade
  2. Click on 'Migrate to Capacitor 6'
  3. Scroll down to 'Output Window on VS Code'
  4. See error

Expected behavior Should upgrade to Capacitor 6 without any issues

image

twatoris commented 5 months ago

Well, this has taken somewhat longer to resolve than I hoped. Obviously, @capacitor/google-maps has not been updated to support the new @capacitor/core@6.0.0. Currently using --legacy-peer-deps flag to bypass the peer dependency conflict, pending when the upgrade for @capacitor/google-maps would be available. The only other option, interim, would be to defer/downgrade from @capacitor/core@6.0.0.

frederikheld commented 5 months ago

Are you on the ACTUAL latest version of this plugin? Not the one tagged as latest (beta.1), but beta.8. I had a different issue and went down that rabbit hole but in the end I got it working with Capacitor 6 by installing the beta.8. See: https://github.com/capacitor-community/google-maps/discussions/234

frederikheld commented 5 months ago

@ravimittal16 I read your error message again and noticed that you are in the wrong repo. The error is about @capacitor/google-maps, but this is the repo for @capacitor-community/google-maps.

paulnagle commented 5 months ago

For anyone looking for info on the ionic team's @capacitor/google-maps v6 compatibilty issues, the answer is here https://github.com/ionic-team/capacitor-google-maps/issues/5#issuecomment-2072345149

ravimittal16 commented 5 months ago

@frederikheld I think they are same.

ravimittal16 commented 5 months ago

We were able to update Capacitor v6 with RC version of google-maps plugin. Hence clsoing the issue

frederikheld commented 5 months ago

They are definitely not the same. I spent a lot of weeks recently, to figure out how both of them work and they work very different (and none of them properly)