-
Notifications
You must be signed in to change notification settings - Fork 936
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
OverlayViewHelper.js:122 Uncaught TypeError: Cannot read property ‘parentNode’ of undefined #834
Comments
@HannahCarney |
@gson88 v=3.30 was the previous frozen version. That one has now gone away. v=3.31 is the new frozen version and doesn't use the new map/renderer. |
I made pull request for the issue. pull request |
@ping4tucker Yes sorry, updated my response |
I can confirm that @gson88 and @ping4tucker solution solved the problem. Haven't seen this error in production since updated :) |
I'm getting this error too, and google have now retired version 3.30 and 3.31. Is this library planning to support the new renderer? @tomchentw anything I can help with? |
Seeing this error as well with version 3.30 and 3.31. It only happens for me on the second time an OverlayView is rendered. |
@websmith I believe if you are requesting 3.30 or 3.31, you aren't being served that version. You are getting one of the current versions: 3.32, 3.33, or 3.34; I'm not sure which one. https://developers.google.com/maps/documentation/javascript/versions |
@ping4tucker Thank you for the quick reply. If I'm explicitly requesting v3.30, why would google serve a different version? Here's what I am requesting:
I verified this is the script being loaded in my document. Additionally, I'm also seeing Google's retired version message in the console:
Am I misunderstanding? |
@websmith You can subscribe to this google group that will notify you about upcoming api version changes: https://groups.google.com/forum/#!topic/google-maps-js-api-v3-notify/UmUZ3Kh0eTY
In addition to that, the version documentation I linked above says that you can only specify versions 3.32, 3.33, 3.34. It also mentions at the very bottom that they deleted the documentation for 3.30 and 3.31. I don't know all the reasons why google doesn't allow devs to keep using the old versions, but they don't. |
thanks @ping4tucker If I can come up with a solution here for the new renderer I will submit a PR |
If anyone else is experiencing this issue, I was able to resolve by removing the key={Math.random()} prop from the component declaration. <OverlayView
//key={Math.random()} //removing this solved the issue
position={{lat:this.lat, lng:this.lng}}
mapPaneName={OverlayView.OVERLAY_MOUSE_TARGET}
>
...
</OverlayView> |
@websmith @ping4tucker I'm experiencing the same issue. Requesting 3.34 version, output of |
A workaround is wrapping the
|
Receiving this error on production rollbar with no ability to replicate. Problem is coming from this code base, and reportedly causes a white screen which resolves on refresh.
OverlayViewHelper.js:122 Uncaught TypeError: Cannot read property ‘parentNode’ of undefined
at Object.h [as unmountAndDestroyContainerElement] (OverlayViewHelper.js:122)
at Object.onRemove (OverlayView.js:137)
at qu.ug (overlay.js:4)
at su (overlay.js:1)
at Object.xk (overlay.js:5)
at js?key=AIzaSyCbtQD4xjpQ7HEzTvLb2Ea2Bf6cCD24HUs:146
at Object..S (js?key=AIzaSyCbtQD4xjpQ7HEzTvLb2Ea2Bf6cCD24HUs:62)
at Object..ag.map_changed (js?key=AIzaSyCbtQD4xjpQ7HEzTvLb2Ea2Bf6cCD24HUs:146)
at Lc (js?key=AIzaSyCbtQD4xjpQ7HEzTvLb2Ea2Bf6cCD24HUs:51)
at Object._.m.set (js?key=AIzaSyCbtQD4xjpQ7HEzTvLb2Ea2Bf6cCD24HUs:120)
The text was updated successfully, but these errors were encountered: