DOMException: Failed to execute 'insertBefore' on' Node'

using the components of vue+ vue-baidu-map, changing the relevant data vue for update throws an exception

related codes

http://jsfiddle.net/tb4sap2c/6/

error description

to put it simply, it encapsulates a MyOverlay component, which calls the reload method provided by the overlay component according to the change of the listener component property position. The reload refreshes the map coordinate points, and there is no problem in the process of refreshing the map coordinate points from the monitor-reload-. However, if you enable the timer and keep calling the reload refresh, you will throw an exception. It is suspected that it is caused by the dom operation not completed and refreshed again. It feels very troublesome to solve. So put it up to show the bosses if there is a suitable solution

Mar.25,2021

this looks like it's not easy to look up, and it's impossible to give an exact answer. Suggestion:

  1. use official examples to see if you can run;
  2. use the officially specified version to see if it can run;
  3. gradually replace it with your version + your parameters, and find the point where the problem occurs

have you solved your problem? I also reported the same error on the map as you


I encountered it too!
this problem nextTick can solve


nextTickz. I've tried, but it's useless. Just use setTimeout to delay assignment

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e46bef-44120.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e46bef-44120.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?