question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MarkerWithLabel do not work, cannot read property 'removeChild' of null

See original GitHub issue

A few days ago MarkerWithLabel stopped working Before that everything worked fine In the browser, I noticed an error …

Uncaught TypeError: Cannot read property 'removeChild' of null
    at MarkerLabel_.onRemove (index.js:325)
    at Ez.ug (overlay.js:4)
    at Gz (overlay.js:1)
    at Object.Xk (overlay.js:5)
    at js?v=3.exp&key=AIzaSyBt_qVRW8YYbccOObNdiN_MPskqQcUeu7A&libraries=visualization,places&language=uk:140
    at Object._.Q (js?v=3.exp&key=AIzaSyBt_qVRW8YYbccOObNdiN_MPskqQcUeu7A&libraries=visualization,places&language=uk:62)
    at MarkerLabel_._.Xg.map_changed (js?v=3.exp&key=AIzaSyBt_qVRW8YYbccOObNdiN_MPskqQcUeu7A&libraries=visualization,places&language=uk:140)
    at Tc (js?v=3.exp&key=AIzaSyBt_qVRW8YYbccOObNdiN_MPskqQcUeu7A&libraries=visualization,places&language=uk:50)
    at MarkerLabel_._.m.set (js?v=3.exp&key=AIzaSyBt_qVRW8YYbccOObNdiN_MPskqQcUeu7A&libraries=visualization,places&language=uk:122)
    at MarkerLabel_.setMap (js?v=3.exp&key=AIzaSyBt_qVRW8YYbccOObNdiN_MPskqQcUeu7A&libraries=visualization,places&language=uk:53)
    at MarkerWithLabel.setMap (index.js:591)
    at Cluster.addMarker (markerclusterer.js:502)
    at MarkerClusterer.addToClosestCluster_ (markerclusterer.js:1458)
    at MarkerClusterer.createClusters_ (markerclusterer.js:1517)
    at MarkerClusterer.redraw_ (markerclusterer.js:1373)
    at MarkerClusterer.repaint (markerclusterer.js:1319)
    at MarkerClusterer.componentDidUpdate (MarkerClusterer.js:139)
    at measureLifeCyclePerf (ReactCompositeComponent.js:75)
    at ReactCompositeComponent.js:728
    at CallbackQueue.notifyAll (CallbackQueue.js:76)
    at ReactReconcileTransaction.close (ReactReconcileTransaction.js:80)
    at ReactReconcileTransaction.closeAll (Transaction.js:209)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:9
  • Comments:24

github_iconTop GitHub Comments

24reactions
pdarvascommented, Mar 6, 2018

I solved it by changing the version of the google api from the experimental version to v3.31

before:

export const GOOGLE_API = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyDk-SZbgOovJvTafj7feDjxUIXUrW0L9vY&v=3.exp&libraries=geometry,drawing,places'

after: export const GOOGLE_API = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyDk-SZbgOovJvTafj7feDjxUIXUrW0L9vY&v=3.31&libraries=geometry,drawing,places'

6reactions
Avivhdrcommented, Aug 15, 2018

I’m receiving this error since yesterday. I’ve been using version 3.31 of google maps. I’ve updated the Google Maps version to 3.32 (and tried also at 3.33 & 3.34) and the error still occurs.

The solution mention above (changing the markerLabel’s on remove method) fixes the problem but only locally. I need a fix that does not include changing the node modules.

Does any one else started experience this problem since yesterday?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property 'removeChild' of null
It's telling you parentNode doesn't exist. Without more information about your document, that's all anyone here can tell you.
Read more >
tomchentw/react-google-maps - Gitter
Anybody else have issues getting getPanes to work, when passed in to an OverlayView? ... Cannot read property 'removeChild' of null at MarkerLabel_.onRemove...
Read more >
Uncaught Type: Cannot Read Property RemoveChild of Null
Hi all, I have created a form that is working beautifully, but serving up an error in the console each time the user...
Read more >
Untitle1.txt - Autonics Online Store
<p> * MarkerWithLabel allows you to define markers with associated labels. ... This doesn't work if you drag the marker * itself because...
Read more >
Marker | Maps JavaScript API - Google Developers
If map is set to null , the marker will be removed. setOpacity. setOpacity([opacity]) ... This event is fired when the Marker animation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found