Skip to content
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

Uncaught RangeError: Maximum call stack size exceeded #338

Closed
MatthewKosloski opened this issue Sep 17, 2016 · 6 comments
Closed

Uncaught RangeError: Maximum call stack size exceeded #338

MatthewKosloski opened this issue Sep 17, 2016 · 6 comments

Comments

@MatthewKosloski
Copy link

MatthewKosloski commented Sep 17, 2016

I tried to run the simple-map example, but I got the following error when I tried to move around in the map:

Uncaught RangeError: Maximum call stack size exceeded

All my code is the same thing you have, except I put in my API key:

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing&key=[MY_API_KEY]"></script>
@ranleung
Copy link

getting the same problem

@farhd
Copy link

farhd commented Sep 28, 2016

same problem, but default version:
<script src="https://maps.googleapis.com/maps/api/js"></script>

@MatthewKosloski
Copy link
Author

MatthewKosloski commented Sep 29, 2016

@ranleung @farhd I found a really simple Google Maps React component. It's called react-gmaps. The author is pretty good at responding to any questions you have, just create an issue!

@tomchentw
Copy link
Owner

This is a know bug for 4.x and 5.x on React 15. It's fixed in 6.0.0.

6.0.0 is released on npm beta tag now. See the changelog here. We also have a new demo page. Feel free to try it:
https://tomchentw.github.io/react-google-maps/

@hscharitzer
Copy link

I wanted to chime in and add that this error still occurs on 8.3.2 when following all instructions (https://tomchentw.github.io/react-google-maps/#installation) up to Step 4.

The reason turns out to be a missing
defaultCenter={{ lat: 48.124039, lng: 15.8339266 }}

(I found the solution to this through https://stackoverflow.com/questions/15671480/uncaught-rangeerror-maximum-call-stack-size-exceeded-google-maps-when-i-try-to)

@tomchentw
Copy link
Owner

@hscharitzer I just updated the docs, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants