How to Solve Infinite scroll the pit encountered

InfiniteScroll The pitfalls of this infinite scrolling thing
Solution
[Vue warn]: Error in directive infinite-scroll inserted hook: “TypeError: Failed to execute ‘observe’ on ‘MutationObserver’: parameter 1 is not of type ‘Node’.” found in
TypeError: Failed to execute ‘observe’ on ‘MutationObserver’: parameter 1 is not of type ‘Node’.

This is used by adding a large external box to theoverflow: auto;

overflow: auto;

Otherwise, the console will report a crazy error and prompt an error message, as shown in the figure


Read More: