fullstackreact / google-maps-react

Companion code to the "How to Write a Google Maps React Component" Tutorial
https://www.fullstackreact.com/articles/how-to-write-a-google-maps-react-component/
MIT License
1.63k stars 818 forks source link

Retired version warning #123

Open isabellachen opened 6 years ago

isabellachen commented 6 years ago

I got this warning:

Warning You may have supplied a retired version in your script element. The versions 3.0 - 3.27 have been retired, and you might be receiving 3.28 instead. Please update your application to use one of the available versions.
99darwin commented 6 years ago

I also got this warning. Anyone have a fix for the npm module?

noteflakes commented 6 years ago

Just add a version option to the GoogleApiWrapper call:

export default GoogleApiWrapper({
  apiKey: (YOUR_GOOGLE_API_KEY_GOES_HERE),
  version: "3.30"
})(MapContainer)
cworf commented 6 years ago

this did not work for me, I now get

Warning: Failed prop type: VenueMap: prop type `version` is invalid; it must be a function, usually from the `prop-types` package, but received `string`.

apparently it expects a function?