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
Can't import fitBounds from google-map-react #903
Comments
@Venskiy That is odd, I tried myself and it was working, would you please hold on the update till I can check that? Thanks for reporting it btw! |
Thank you for helping. |
@Venskiy Yeah if you could share a live example with https://codesandbox.io/ or similar would be awesome, to see how are you using fitBounds and be able to test it properly |
@itsmichaeldiego |
@Venskiy Awesome, thanks, I will take a look as soon as I can |
Would this be part of the problem? |
@fracmak that would be my guess as well! I'll try to PR a fix later today. |
./utils/helpers/mapHelpers.js could you guys publish a fix to it? And finally make it work. Every version from 2.0.0 broke my app so I needed to downgrade to the last stable release which was 1.1.7 |
@adamklepacz You are free to create your own PR, I'll approve it and merge it and release a new version 👍 |
I will take a look at this as soon as I've some spare time, stay tuned! |
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 |
@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 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 👍 |
This was fixed and released in 2.1.3, please let me know if it works!! 🙏 Sorry for the delay! |
It does! Thanks for the patch! 💪 |
I'm trying to update library to the newest release(2.0.4), but I can't import
fitBounds
. When I importfitBounds
like this:import { fitBounds } from 'google-map-react';
, webpack will show me this warning:"export 'fitBounds' was not found in 'google-map-react'
The text was updated successfully, but these errors were encountered: