google-map-react: Can't import fitBounds from google-map-react

I’m trying to update library to the newest release(2.0.4), but I can’t import fitBounds. When I import fitBounds like this: import { fitBounds } from 'google-map-react';, webpack will show me this warning: "export 'fitBounds' was not found in 'google-map-react'

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 15 (9 by maintainers)

Most upvoted comments

This was fixed and released in 2.1.3, please let me know if it works!! 🙏

Sorry for the delay!

@michal-novacek I think instead of complaining you should follow other people examples and try to help out, that is what open-source is about.

Besides that, if you want to use a library (any library) in production be careful on how you use your packages, as 2.x is a major release, that means that has breaking changes, you should never update to major packages when in production unless testing them before, so please be more conservative in your testing and release strategy 😉

Going back to the issue, we’re working together with @NerdCowboy and @karldanninger to fix it, feel free to check #923 and the conversation there, so you can learn more about what’s going on, you’ll see that its not our problem but an issue with microbundle, that we’re trying to fix together as a team 👍

first the typescript definition of fitBounds was broken in @types for 1.1.7, now it can’t be imported in 2.x

i am trying to use this thing in production, please be more conservative in your testing and release strategy

I will take a look at this as soon as I’ve some spare time, stay tuned!

It does! Thanks for the patch! 💪