Router crashes on pages with more than 9 root elements
Version
3.1.2
Reproduction link
https://codesandbox.io/s/happy-euclid-610gx
Steps to reproduce
Switch multiple times between any page and page C. Error happens on the second time and will break page rendering after 1st element.
What is expected?
No error
What is actually happening?
"Unhandled error during execution of scheduler flush" --> "Cannot read property 'cloneNode' of null"
Problem is related to vue@3.1.2 — downgrading to vue@3.1.1 solves the problem. Problem can also be worked around by wrapping page content in a div.